Skip to content
Snippets Groups Projects
Commit cd882b63 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2061983 by InternetDevels, rhm50: Replace user_access() calls with...

Issue #2061983 by InternetDevels, rhm50: Replace user_access() calls with ->hasPermission() in edit module.
parent 51811d8a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -55,7 +55,7 @@ function edit_permission() {
* editing' permission.
*/
function edit_page_build(&$page) {
if (!user_access('access in-place editing')) {
if (!Drupal::currentUser()->hasPermission('access in-place editing')) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment