Revision 546
Added by doc almost 17 years ago
class.admin.php | ||
---|---|---|
246 | 246 |
$groups = explode(',', str_replace('_', '', $result[$action_groups])); |
247 | 247 |
$users = explode(',', str_replace('_', '', $result[$action_users])); |
248 | 248 |
} |
249 |
if(!is_numeric(array_search($this->get_group_id(), $groups)) AND !is_numeric(array_search($this->get_user_id(), $users))) { |
|
249 |
|
|
250 |
$in_group = FALSE; |
|
251 |
foreach($this->get_groups_id() as $cur_gid){ |
|
252 |
if (in_array($cur_gid, $groups)) { |
|
253 |
$in_group = TRUE; |
|
254 |
} |
|
255 |
} |
|
256 |
if((!$in_group) AND !is_numeric(array_search($this->get_user_id(), $users))) { |
|
250 | 257 |
return false; |
251 | 258 |
} |
252 | 259 |
return true; |
Also available in: Unified diff
added the "users in multiple groups" feature (closes parts of ticket #546)