Admin - Can't only delete categories for the selected app. Globals only deletable through Admin

This commit is contained in:
nathangray 2018-02-21 14:41:34 -07:00
parent 529991e283
commit 17a759dbe1

View File

@ -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;