Commit cd882b63 authored by alexpott's avatar alexpott

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
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment