Revision 546
Added by doc almost 17 years ago
sections.php | ||
---|---|---|
92 | 92 |
$results_array = $results->fetchRow(); |
93 | 93 |
$old_admin_groups = explode(',', $results_array['admin_groups']); |
94 | 94 |
$old_admin_users = explode(',', $results_array['admin_users']); |
95 |
if(!is_numeric(array_search($admin->get_group_id(), $old_admin_groups)) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) { |
|
95 |
$in_old_group = FALSE; |
|
96 |
foreach($admin->get_groups_id() as $cur_gid){ |
|
97 |
if (in_array($cur_gid, $old_admin_groups)) { |
|
98 |
$in_old_group = TRUE; |
|
99 |
} |
|
100 |
} |
|
101 |
if((!$in_old_group) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) { |
|
96 | 102 |
$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']); |
97 | 103 |
} |
98 | 104 |
|
Also available in: Unified diff
added the "users in multiple groups" feature (closes parts of ticket #546)