Revision 546
Added by doc almost 17 years ago
add.php | ||
---|---|---|
54 | 54 |
|
55 | 55 |
// Setup admin groups |
56 | 56 |
$admin_groups[] = 1; |
57 |
if($admin->get_group_id() != 1) {
|
|
58 |
$admin_groups[] = $admin->get_group_id();
|
|
57 |
if(!in_array(1, $admin->get_groups_id())) {
|
|
58 |
$admin_groups[] = implode(",",$admin->get_groups_id());
|
|
59 | 59 |
} |
60 | 60 |
$admin_groups = implode(',', $admin_groups); |
61 | 61 |
// Setup viewing groups |
62 | 62 |
$viewing_groups[] = 1; |
63 |
if($admin->get_group_id() != 1) {
|
|
64 |
$viewing_groups[] = $admin->get_group_id();
|
|
63 |
if(!in_array(1, $admin->get_groups_id())) {
|
|
64 |
$viewing_groups[] = implode(",",$admin->get_groups_id());
|
|
65 | 65 |
} |
66 | 66 |
$viewing_groups = implode(',', $viewing_groups); |
67 | 67 |
|
Also available in: Unified diff
added the "users in multiple groups" feature (closes parts of ticket #546)