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