diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
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(); } } |