Revision 546
Added by doc almost 18 years ago
| index.php | ||
|---|---|---|
| 115 | 115 |
} |
| 116 | 116 |
} |
| 117 | 117 |
// Only allow the user to add a user to the Administrators group if they belong to it |
| 118 |
if($admin->get_group_id() == 1) {
|
|
| 118 |
if(in_array(1, $admin->get_groups_id())) {
|
|
| 119 |
$users_groups = $admin->get_groups_name(); |
|
| 119 | 120 |
$template->set_var('ID', '1');
|
| 120 |
$template->set_var('NAME', $admin->get_group_name());
|
|
| 121 |
$template->set_var('NAME', $users_groups[1]);
|
|
| 121 | 122 |
$template->set_var('SELECTED', '');
|
| 122 | 123 |
$template->parse('group_list', 'group_list_block', true);
|
| 123 | 124 |
} else {
|
Also available in: Unified diff
added the "users in multiple groups" feature (closes parts of ticket #546)