diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-12-21 07:56:24 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-12-21 07:56:24 +0000 |
commit | 8b8fd6601b12b2c6406333495d2d71103493a28e (patch) | |
tree | a15d53dc46f0586e72153cc92e4958726bcf770e /frontends/php/include | |
parent | ae4c42731394436cc7f607eae13f4d393234e302 (diff) | |
download | zabbix-8b8fd6601b12b2c6406333495d2d71103493a28e.tar.gz zabbix-8b8fd6601b12b2c6406333495d2d71103493a28e.tar.xz zabbix-8b8fd6601b12b2c6406333495d2d71103493a28e.zip |
- fixed permission system for empty maps (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3618 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r-- | frontends/php/include/maps.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/frontends/php/include/maps.inc.php b/frontends/php/include/maps.inc.php index ca9a8abf..3962d6a5 100644 --- a/frontends/php/include/maps.inc.php +++ b/frontends/php/include/maps.inc.php @@ -30,7 +30,7 @@ $result = false; if($db_result = DBselect("select * from sysmaps_elements where sysmapid=".$sysmapid. - " and ".DBid2nodeid('sysmapid')." in (".get_accessible_nodes_by_user($USER_DETAILS,$perm).")")) + " and ".DBid2nodeid('sysmapid')." not in (".get_accessible_nodes_by_user($USER_DETAILS,$perm,PERM_MODE_LT).")")) { $result = true; @@ -68,6 +68,12 @@ } } } + else + { + if(DBselect("select sysmapid from sysmaps where sysmapid=".$sysmapid. + " and ".DBid2nodeid('sysmapid')." not in (".get_accessible_nodes_by_user($USER_DETAILS,$perm,PERM_MODE_LT).")")) + $result = true; + } return $result; } |