aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-04-11 00:49:45 +0000
committerrvelices <rv-github@modusoptimus.com>2007-04-11 00:49:45 +0000
commit3ed9a9e7639097b8b2b6b73d877c2414705a6b96 (patch)
tree0e4f397d09e6b381743b20cbbde44846c5c8cd57
parenta991ac35ebbc6e3ec0419cba78de82c41df19014 (diff)
fix admin.php #_user_cache.need_update
git-svn-id: http://piwigo.org/svn/trunk@1952 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin.php20
1 files changed, 18 insertions, 2 deletions
diff --git a/admin.php b/admin.php
index 4a6ca3e51..b66378e73 100644
--- a/admin.php
+++ b/admin.php
@@ -160,8 +160,24 @@ include(PHPWG_ROOT_PATH.'include/page_tail.php');
// | order permission refreshment |
// +-----------------------------------------------------------------------+
// Only for pages witch change permissions
-if (in_array($page['page'], array('cat_options', 'cat_perm',
- 'group_perm', 'site_update', 'user_list', 'user_perm')))
+if (
+ in_array($page['page'],
+ array(
+ 'site_manager', // delete site
+ 'site_update', // ?only POST
+ 'cat_list', // delete cat
+ 'cat_modify', // delete cat; public/private; lock/unlock
+ 'cat_move', // ?only POST
+ 'cat_options', // ?only POST; public/private; lock/unlock
+ 'cat_perm', // ?only POST
+ 'element_set', // ?only POST; associate/dissociate
+ 'user_list', // ?only POST; group assoc
+ 'user_perm',
+ 'group_perm',
+ 'group_list', // delete group
+ )
+ )
+ )
{
$query = '
UPDATE '.USER_CACHE_TABLE.'