diff options
Diffstat (limited to 'includes/user.inc')
-rw-r--r-- | includes/user.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/user.inc b/includes/user.inc index 74254dc2b..307a3f33c 100644 --- a/includes/user.inc +++ b/includes/user.inc @@ -54,7 +54,7 @@ function user_save($account, $array) { function user_access($account, $section = 0) { global $user; - if ($section) return (field_get($account, "access", $section) || $account->id == 1); + if ($section) return (field_get($account->access, $section) || $account->id == 1); else return ($account->access || $account->id == 1); } |