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

This commit is contained in:
Hadi Nategh 2015-02-11 09:42:17 +00:00
parent 73118f330a
commit d4263b96b1

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 ';
}