aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_perm.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2012-09-11 11:48:01 +0000
committerflop25 <flop25@piwigo.org>2012-09-11 11:48:01 +0000
commit7a0b5fc3b5b4a393e8ee42316c844a8ba1c37f25 (patch)
treed36bc4323e1b019d356e699a30faaaa5d0193449 /admin/cat_perm.php
parent53a0522894ac474e5e614f2d0d1894b21ab0216f (diff)
merge r17561
bug:2719 no need to array diff : the system check after to not reinsert existing lines git-svn-id: http://piwigo.org/svn/branches/2.4@17857 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_perm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/cat_perm.php b/admin/cat_perm.php
index d5c41edf7..e1b1a4010 100644
--- a/admin/cat_perm.php
+++ b/admin/cat_perm.php
@@ -90,7 +90,7 @@ DELETE
//
// add permissions to groups
//
- $grant_groups = array_diff($_POST['groups'], $groups_granted);
+ $grant_groups = $_POST['groups'];
if (count($grant_groups) > 0)
{
$cat_ids = get_uppercat_ids(array($page['cat']));
@@ -183,7 +183,7 @@ DELETE
//
// add permissions to users
//
- $grant_users = array_diff($_POST['users'], $users_granted);
+ $grant_users = $_POST['users'];
if (count($grant_users) > 0)
{
add_permission_on_category($page['cat'], $grant_users);