Commit a18f9c6e authored by alexpott's avatar alexpott
Browse files

Issue #2061949 by m1r1k, Garbar, joelpittet: Remove calls to deprecated global $user in update.php.

parent b201c054
......@@ -342,7 +342,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')) {
......
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