aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-30 22:47:47 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-30 22:47:47 +0000
commitf7527692b3ec6303b01dc84d4de335fda359bb00 (patch)
tree1162089db65fd474ccd1c31a91dfd82a47a00a1a /admin
parent27c7e9d5a2c0252e417fbcc471ea86d416c572f9 (diff)
changing get_restrictions to get_user_restrictions
git-svn-id: http://piwigo.org/svn/branches/release-1_3@332 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-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 61f44d993..f0420dac9 100644
--- a/admin/cat_perm.php
+++ b/admin/cat_perm.php
@@ -151,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 )
{
@@ -163,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 )
{