bugfix cat-admin

This commit is contained in:
Cornelius Weiß 2005-05-07 13:08:28 +00:00
parent 36fbfd7904
commit 5ce8a7b6c9

View File

@ -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');
}
/*!