diff options
Diffstat (limited to 'frontends/php/include/perm.inc.php')
-rw-r--r-- | frontends/php/include/perm.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/perm.inc.php b/frontends/php/include/perm.inc.php index e56e92dc738..a819f92d3a7 100644 --- a/frontends/php/include/perm.inc.php +++ b/frontends/php/include/perm.inc.php @@ -107,7 +107,7 @@ function getUserGuiAccess($userId, $maxGuiAccess = null) { ' FROM usrgrp g,users_groups ug'. ' WHERE ug.userid='.zbx_dbstr($userId). ' AND g.usrgrpid=ug.usrgrpid'. - (($maxGuiAccess === null) ? '' : ' AND g.gui_access<='.$maxGuiAccess) + (($maxGuiAccess === null) ? '' : ' AND g.gui_access<='.zbx_dbstr($maxGuiAccess)) )); return $guiAccess ? $guiAccess['gui_access'] : GROUP_GUI_ACCESS_SYSTEM; @@ -149,7 +149,7 @@ function getGroupsGuiAccess($groupIds, $maxGuiAccess = null) { 'SELECT MAX(g.gui_access) AS gui_access'. ' FROM usrgrp g'. ' WHERE '.dbConditionInt('g.usrgrpid', $groupIds). - (($maxGuiAccess === null) ? '' : ' AND g.gui_access<='.$maxGuiAccess) + (($maxGuiAccess === null) ? '' : ' AND g.gui_access<='.zbx_dbstr($maxGuiAccess)) )); return $guiAccess ? $guiAccess['gui_access'] : GROUP_GUI_ACCESS_SYSTEM; |