summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/perm.inc.php
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-07 08:46:19 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-07 08:46:19 +0000
commitb93508c7b63e89efd30a1a6c304f2eea27388244 (patch)
treedf6a9d3475cd614b8a78289efd63ee07edfdc8b1 /frontends/php/include/perm.inc.php
parent224ef1379dfb1c35ca45dcee50072406c76f714a (diff)
downloadzabbix-b93508c7b63e89efd30a1a6c304f2eea27388244.tar.gz
zabbix-b93508c7b63e89efd30a1a6c304f2eea27388244.tar.xz
zabbix-b93508c7b63e89efd30a1a6c304f2eea27388244.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@3572 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/perm.inc.php')
-rw-r--r--frontends/php/include/perm.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/perm.inc.php b/frontends/php/include/perm.inc.php
index 21b1c00b..fda4a822 100644
--- a/frontends/php/include/perm.inc.php
+++ b/frontends/php/include/perm.inc.php
@@ -363,7 +363,7 @@ COpt::counter_up('perm');
/* deny if no rights defined (for local node read/write)*/
if(is_null($node_data['permission']))
{
- if($user_type == USER_TYPE_SUPPER_ADMIN)
+ if($user_type == USER_TYPE_SUPER_ADMIN)
$node_data['permission'] = PERM_READ_WRITE;
else
$node_data['permission'] =
@@ -627,7 +627,7 @@ COpt::counter_up('perm');
if(isset($node_perm[$node_data['nodeid']]))
$node_data['permission'] = $node_perm[$node_data['nodeid']];
- elseif($node_data['nodeid'] == $ZBX_LOCALNODEID || $user_type == USER_TYPE_SUPPER_ADMIN)
+ elseif($node_data['nodeid'] == $ZBX_LOCALNODEID || $user_type == USER_TYPE_SUPER_ADMIN)
/* for local node or superuser default permission is READ_WRITE */
$node_data['permission'] = PERM_READ_WRITE;