diff --git a/modules/user.module b/modules/user.module index 3ccfff64d2b..435ba4956bd 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 3ccfff64d2b..435ba4956bd 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(); } }