summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-20 21:08:07 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-20 21:08:07 +0000
commit9000f825cc63e6b52ad4f19f633d67aa16fef799 (patch)
tree405b1cb20a9ea61ed1782d4338bf00e169725888
parentc7c2bf3dcf7de748de79ceac205706901e11d2c2 (diff)
downloadbrdo-9000f825cc63e6b52ad4f19f633d67aa16fef799.tar.gz
brdo-9000f825cc63e6b52ad4f19f633d67aa16fef799.tar.bz2
- Flush cache after changing user permissions. Patch by Gerhard.
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
2 files changed, 4 insertions, 0 deletions
diff --git a/modules/user.module b/modules/user.module
index 3ccfff64d..435ba4956 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -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();
}
}
diff --git a/modules/user/user.module b/modules/user/user.module
index 3ccfff64d..435ba4956 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -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();
}
}