From 9f2fd0e2ec39b88ad81092bab1e4c06afb034f26 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Jul 2017 12:36:42 +0200 Subject: [PATCH] check for int -1 and 1 instead of string "-1" and "1" SeedDMS_Acl_Aro::getPermission() returns int anyway --- views/bootstrap/class.Acl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.Acl.php b/views/bootstrap/class.Acl.php index e616b46f7..2777845f9 100644 --- a/views/bootstrap/class.Acl.php +++ b/views/bootstrap/class.Acl.php @@ -40,11 +40,11 @@ $('#acostree').tree({ closedIcon: '', onCreateLi: function(node, $li) { switch(node.permission) { - case "-1": + case -1: $li.find('.jqtree-element span:last-child').after(' '); $li.attr('style', 'background-color:#FDD'); break; - case "1": + case 1: $li.find('.jqtree-element span:last-child').after(' '); $li.attr('style', 'background-color:#DFD'); break;