aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_perm.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/cat_perm.php')
-rw-r--r--admin/cat_perm.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/cat_perm.php b/admin/cat_perm.php
index 81d9f9945..09767c19b 100644
--- a/admin/cat_perm.php
+++ b/admin/cat_perm.php
@@ -83,6 +83,8 @@ if ( isset( $_POST['submit'] ) )
}
check_favorites( $row['id'] );
}
+ // resynchronize all users
+ synchronize_all_users();
}
//---------------------------------------------------------------------- groups
$query = 'SELECT id,name';
@@ -149,7 +151,7 @@ while ( $row = mysql_fetch_array( $result ) )
// for color of user : (red means access forbidden, green authorized) we
// ask all forbidden categories, including the groups rights
- $restrictions = get_restrictions( $row['id'], $row['status'], false );
+ $restrictions = get_user_restrictions( $row['id'], $row['status'], false );
$is_user_allowed = is_user_allowed( $page['cat'], $restrictions );
if ( $is_user_allowed == 0 )
{
@@ -161,7 +163,7 @@ while ( $row = mysql_fetch_array( $result ) )
}
// for permission update button, we only ask forbidden categories for the
// user, not taking into account the groups the user belongs to
- $restrictions = get_restrictions( $row['id'], $row['status'], false, false );
+ $restrictions = get_user_restrictions($row['id'],$row['status'],false,false);
$is_user_allowed = is_user_allowed( $page['cat'], $restrictions );
if ( $is_user_allowed == 2 )
{