Skip to content
Snippets Groups Projects
Commit 2d8259c7 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#25605 by Rob Loach et al: disallow editing user data of uid 0

parent 40d406f7
No related branches found
No related tags found
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
...@@ -841,7 +841,7 @@ function user_view_access($account) { ...@@ -841,7 +841,7 @@ function user_view_access($account) {
} }
function user_edit_access($account) { function user_edit_access($account) {
return ($GLOBALS['user']->uid == $account->uid) || user_access('administer users'); return (($GLOBALS['user']->uid == $account->uid) || user_access('administer users')) && $account->uid > 0;
} }
function user_load_self($arg) { function user_load_self($arg) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment