- Flush cache after changing user permissions. Patch by Gerhard.

4.4.x
Dries Buytaert 2003-11-20 21:08:07 +00:00
parent c7c2bf3dcf
commit 9000f825cc
2 changed files with 4 additions and 0 deletions

View File

@ -1219,6 +1219,8 @@ function user_admin_perm($edit = array()) {
if ($perm) {
db_query("INSERT INTO {permission} (rid, perm) VALUES (%d, '%s')", $role->rid, $perm);
}
// clear the cache, we might have changed the anonymous user's permissions
cache_clear_all();
}
}

View File

@ -1219,6 +1219,8 @@ function user_admin_perm($edit = array()) {
if ($perm) {
db_query("INSERT INTO {permission} (rid, perm) VALUES (%d, '%s')", $role->rid, $perm);
}
// clear the cache, we might have changed the anonymous user's permissions
cache_clear_all();
}
}