Prevent users from viewing arbitrary cache keys

This commit is contained in:
What.CD 2011-06-07 08:00:10 +00:00
parent bf344663aa
commit d66bd0a943

View File

@ -1,5 +1,5 @@
<?
if(!check_perms('admin_clear_cache')) {
if(!check_perms('users_mod') || !check_perms('admin_clear_cache')) {
error(403);
}