Commit 8bc39e90 authored by Dries's avatar Dries

- Undid my changes to user_access().
parent 8205b626
......@@ -215,7 +215,7 @@ function user_access($string) {
** in a static variable.
*/
if (isset($perm)) {
if (!$perm) {
if ($user->uid) {
$perm = db_result(db_query("SELECT p.perm FROM role r, permission p WHERE r.rid = p.rid AND name = '%s'", $user->role), 0);
}
......
......@@ -215,7 +215,7 @@ function user_access($string) {
** in a static variable.
*/
if (isset($perm)) {
if (!$perm) {
if ($user->uid) {
$perm = db_result(db_query("SELECT p.perm FROM role r, permission p WHERE r.rid = p.rid AND name = '%s'", $user->role), 0);
}
......
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