diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-04 13:42:03 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-04 13:42:03 +0000 |
| commit | 37d5d87fa9c1b4f2e9c1ff56aa9a903b04ba45fc (patch) | |
| tree | be498b8eb64e38ccdc3da50901c03039c956fb27 /frontends/php/include/perm.inc.php | |
| parent | b0d70e49ec39c7af96a13144fa6747b1b6eaeb20 (diff) | |
| download | zabbix-37d5d87fa9c1b4f2e9c1ff56aa9a903b04ba45fc.tar.gz zabbix-37d5d87fa9c1b4f2e9c1ff56aa9a903b04ba45fc.tar.xz zabbix-37d5d87fa9c1b4f2e9c1ff56aa9a903b04ba45fc.zip | |
- added constant ZBX_GUEST_USER (Artem)
- added user check on 'guest' to 'history' (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4231 97f52cf1-0a1b-0410-bd0e-c28be96e8082
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 c0351b5f..aeea6c43 100644 --- a/frontends/php/include/perm.inc.php +++ b/frontends/php/include/perm.inc.php @@ -71,7 +71,7 @@ if(!$USER_DETAILS) { - if(!($USER_DETAILS = DBfetch(DBselect("select u.* from users u where u.alias='guest'". + if(!($USER_DETAILS = DBfetch(DBselect("select u.* from users u where u.alias=".zbx_dbstr(ZBX_GUEST_USER). " and ".DBid2nodeid('u.userid')."=$ZBX_LOCALNODEID")))) { $missed_user_guest = true; @@ -90,7 +90,7 @@ else { $USER_DETAILS = array( - "alias" =>"guest", + "alias" =>ZBX_GUEST_USER, "userid"=>0, "lang" =>"en_gb", "type" =>"0", |
