mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
bugfix cat-admin
This commit is contained in:
parent
36fbfd7904
commit
5ce8a7b6c9
@ -118,7 +118,15 @@
|
||||
*/
|
||||
function get_cat_admin($cat_id)
|
||||
{
|
||||
return array_search (PHPGW_ACL_CAT_ADMIN, $this->get_rights($cat_id));
|
||||
$cat_rights = $this->get_rights($cat_id));
|
||||
foreach ($cat_rights as $userid => $right)
|
||||
{
|
||||
if ($right & PHPGW_ACL_CAT_ADMIN)
|
||||
{
|
||||
return $userid;
|
||||
}
|
||||
}
|
||||
return lang('none');
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user