Revision 546
Added by doc almost 17 years ago
sections_save.php | ||
---|---|---|
50 | 50 |
$results_array = $results->fetchRow(); |
51 | 51 |
$old_admin_groups = explode(',', $results_array['admin_groups']); |
52 | 52 |
$old_admin_users = explode(',', $results_array['admin_users']); |
53 |
if(!is_numeric(array_search($admin->get_group_id(), $old_admin_groups)) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) { |
|
53 |
$in_old_group = FALSE; |
|
54 |
foreach($admin->get_groups_id() as $cur_gid){ |
|
55 |
if (in_array($cur_gid, $old_admin_groups)) { |
|
56 |
$in_old_group = TRUE; |
|
57 |
} |
|
58 |
} |
|
59 |
if((!$in_old_group) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) { |
|
54 | 60 |
$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']); |
55 | 61 |
} |
56 | 62 |
|
Also available in: Unified diff
added the "users in multiple groups" feature (closes parts of ticket #546)