diff options
author | plegall <plg@piwigo.org> | 2005-01-08 11:23:52 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-01-08 11:23:52 +0000 |
commit | 971d0c5a9593d2a8d8ad0eff70c9dba1ca06a606 (patch) | |
tree | ac5ab17972444902a0dfb128eace09f9a11e6b86 /include/user.inc.php | |
parent | baf609b26a5c17dbaf5a7f04c9ed95b128b928aa (diff) |
- deletion of calculated permissions when deleting a user
- taking into account locked categories during permissions calculation
git-svn-id: http://piwigo.org/svn/trunk@680 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/user.inc.php')
-rw-r--r-- | include/user.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/user.inc.php b/include/user.inc.php index 0d969cec8..f64c28a46 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -128,7 +128,8 @@ if (!defined('IN_ADMIN') or !IN_ADMIN) or !is_bool($user['need_update']) or $user['need_update'] == true) { - $user['forbidden_categories'] = calculate_permissions($user['id']); + $user['forbidden_categories'] = calculate_permissions($user['id'], + $user['status']); } } |