Skip to content
Snippets Groups Projects
Commit a18f9c6e authored by Alex Pott's avatar Alex Pott
Browse files

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

parent b201c054
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment