Commit 2a561f3b authored by Steven Wittens's avatar Steven Wittens

- #16705: Make user_access always return a boolean.

parent e4096e14
......@@ -335,7 +335,7 @@ function user_access($string, $account = NULL) {
}
if (isset($perm[$account->uid])) {
return strstr($perm[$account->uid], "$string, ");
return strpos($perm[$account->uid], "$string, ") !== FALSE;
}
return FALSE;
......
......@@ -335,7 +335,7 @@ function user_access($string, $account = NULL) {
}
if (isset($perm[$account->uid])) {
return strstr($perm[$account->uid], "$string, ");
return strpos($perm[$account->uid], "$string, ") !== FALSE;
}
return FALSE;
......
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