From f7527692b3ec6303b01dc84d4de335fda359bb00 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Fri, 30 Jan 2004 22:47:47 +0000 Subject: changing get_restrictions to get_user_restrictions git-svn-id: http://piwigo.org/svn/branches/release-1_3@332 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/cat_perm.php | 4 ++-- 1 file 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 ) { -- cgit v1.2.3