summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-09-09 16:12:52 (GMT)
committerAlex Pott2013-09-09 16:12:52 (GMT)
commitcd882b638946bfeb9aeed9ed1e90a50b2529e163 (patch)
treead88402bc738ddb573f35742b08db50c2e4b411e
parent51811d8a7816ef6035e7e912645a004b0861774c (diff)
Issue #2061983 by InternetDevels, rhm50: Replace user_access() calls with ->hasPermission() in edit module.
-rw-r--r--core/modules/edit/edit.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module
index 3fbf12f..ae02deb 100644
--- a/core/modules/edit/edit.module
+++ b/core/modules/edit/edit.module
@@ -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;
}