mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
bugfix cat-admin
This commit is contained in:
parent
36fbfd7904
commit
5ce8a7b6c9
@ -118,7 +118,15 @@
|
|||||||
*/
|
*/
|
||||||
function get_cat_admin($cat_id)
|
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