From a9522e71cd4c5311462f4d9f8305b900bf622293 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 11 Feb 2015 09:40:01 +0000 Subject: [PATCH] Fix user can not delete its own categories from nextmatch context menu --- admin/inc/class.admin_categories.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.admin_categories.inc.php b/admin/inc/class.admin_categories.inc.php index 3f3af1c684..a5db725894 100644 --- a/admin/inc/class.admin_categories.inc.php +++ b/admin/inc/class.admin_categories.inc.php @@ -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 '; }