Commit 727304d0 authored by Dries's avatar Dries

- Patch #151270 by moshe: fixed braino.

parent 6913d233
......@@ -746,7 +746,7 @@ function user_view_access($account) {
}
function user_edit_access($account) {
return ($GLOBALS['user']->uid == $account->uid) || array('administer users');
return ($GLOBALS['user']->uid == $account->uid) || user_access('administer users');
}
function user_load_self($arg) {
......
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