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
No related merge requests found
......@@ -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