Revision 546
Added by doc almost 17 years ago
trash.php | ||
---|---|---|
102 | 102 |
// Get user perms |
103 | 103 |
$admin_groups = explode(',', str_replace('_', '', $page['admin_groups'])); |
104 | 104 |
$admin_users = explode(',', str_replace('_', '', $page['admin_users'])); |
105 |
if(is_numeric(array_search($admin->get_group_id(), $admin_groups)) OR is_numeric(array_search($admin->get_user_id(), $admin_users))) { |
|
105 |
$in_old_group = FALSE; |
|
106 |
foreach($admin->get_groups_id() as $cur_gid){ |
|
107 |
if (in_array($cur_gid, $old_admin_groups)) { |
|
108 |
$in_old_group = TRUE; |
|
109 |
} |
|
110 |
} |
|
111 |
if((!$in_old_group) OR is_numeric(array_search($admin->get_user_id(), $admin_users))) { |
|
106 | 112 |
if($page['visibility'] == 'deleted') { |
107 | 113 |
$can_modify = true; |
108 | 114 |
$editable_pages = $editable_pages+1; |
Also available in: Unified diff
added the "users in multiple groups" feature (closes parts of ticket #546)