From 65e54052c7d794ee97632db4b312912d7d9e8ddc Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 21 Feb 2018 14:41:34 -0700 Subject: [PATCH] Admin - Can't only delete categories for the selected app. Globals only deletable through Admin --- admin/inc/class.admin_categories.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_categories.inc.php b/admin/inc/class.admin_categories.inc.php index e0befa3496..ec28061638 100644 --- a/admin/inc/class.admin_categories.inc.php +++ b/admin/inc/class.admin_categories.inc.php @@ -426,10 +426,10 @@ class admin_categories $row['class'] .= ' rowNoDelete'; } } - // Can only edit (via context menu) Categories for the selected app (backend restriction) + // Can only edit or delete (via context menu) Categories for the selected app (backend restriction) if($row['appname'] != $query['appname']) { - $row['class'] .= ' rowNoEdit '; + $row['class'] .= ' rowNoEdit rowNoDelete '; } $readonlys['nm']["edit[$row[id]]"] = !self::$acl_edit; $readonlys['nm']["add[$row[id]]"] = !self::$acl_add_sub;