Changeset 332


Ignore:
Timestamp:
Jan 30, 2004, 11:47:47 PM (20 years ago)
Author:
z0rglub
Message:

changing get_restrictions to get_user_restrictions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/admin/cat_perm.php

    r256 r332  
    152152  // for color of user : (red means access forbidden, green authorized) we
    153153  // ask all forbidden categories, including the groups rights
    154   $restrictions = get_restrictions( $row['id'], $row['status'], false );
     154  $restrictions = get_user_restrictions( $row['id'], $row['status'], false );
    155155  $is_user_allowed = is_user_allowed( $page['cat'], $restrictions );
    156156  if ( $is_user_allowed == 0 )
     
    164164  // for permission update button, we only ask forbidden categories for the
    165165  // user, not taking into account the groups the user belongs to
    166   $restrictions = get_restrictions( $row['id'], $row['status'], false, false );
     166  $restrictions = get_user_restrictions($row['id'],$row['status'],false,false);
    167167  $is_user_allowed = is_user_allowed( $page['cat'], $restrictions );
    168168  if ( $is_user_allowed == 2 )
Note: See TracChangeset for help on using the changeset viewer.