Fix user can not delete its own categories from nextmatch context menu

This commit is contained in:
Hadi Nategh 2015-02-11 09:40:01 +00:00
parent dfb81fc050
commit a9522e71cd

View File

@ -365,7 +365,7 @@ class admin_categories
$row['subs'] = count($row['children']);
$row['class'] = 'level'.$row['level'];
if($row['owner'] > 0 && !$GLOBALS['egw_info']['user']['apps']['admin'] && $row['owner'] != $GLOBALS['egw_info']['user']['account_id'])
if($row['owner'][0] > 0 && !$GLOBALS['egw_info']['user']['apps']['admin'] && $row['owner'][0] != $GLOBALS['egw_info']['user']['account_id'])
{
$row['class'] .= ' rowNoEdit rowNoDelete ';
}