Commit e19a3cf4 authored by Dries's avatar Dries

- Patch #12363: fixed glitch in user_access() as pointed out by TDobes.
parent 256a0466
......@@ -312,7 +312,7 @@ function user_access($string, $account = NULL) {
}
// User #1 has all privileges:
if ($user->uid == 1) {
if ($account->uid == 1) {
return 1;
}
......
......@@ -312,7 +312,7 @@ function user_access($string, $account = NULL) {
}
// User #1 has all privileges:
if ($user->uid == 1) {
if ($account->uid == 1) {
return 1;
}
......
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