summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorAlex Pott2014-07-20 10:28:21 (GMT)
committerAlex Pott2014-07-20 10:28:21 (GMT)
commit7d0c5795a6744dc4520f83692b84ed3972194411 (patch)
treec656a109866ae92a2b39ddf7c895dd87da7f57e2 /core/authorize.php
parent29d0f4361d53cbf72c7b60e2370f2bbdf250e18c (diff)
Issue #2062043 by eelkeblok, longwave, rhm50, InternetDevels, alvar0hurtad0, Xano: Replace user_access() calls with $account->hasPermission() in core files.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/authorize.php b/core/authorize.php
index 5418007..3a34046 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -50,7 +50,7 @@ const MAINTENANCE_MODE = 'update';
*/
function authorize_access_allowed() {
\Drupal::service('session_manager')->startLazy();
- return Settings::get('allow_authorize_operations', TRUE) && user_access('administer software updates');
+ return Settings::get('allow_authorize_operations', TRUE) && \Drupal::currentUser()->hasPermission('administer software updates');
}
$request = Request::createFromGlobals();