diff --git a/core/update.php b/core/update.php index 3052584..1ae8731 100644 --- a/core/update.php +++ b/core/update.php @@ -340,7 +340,7 @@ function update_access_denied_page() { * TRUE if the current user should be granted access, or FALSE otherwise. */ function update_access_allowed() { - global $user; + $user = Drupal::currentUser(); // Allow the global variable in settings.php to override the access check. if (settings()->get('update_free_access')) {