summaryrefslogtreecommitdiffstats
path: root/frontends/php/hosts.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-20 08:42:25 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-20 08:42:25 +0000
commit3f8cf5f0da75fa8312c173e9e2c1e1e843811091 (patch)
tree1cb9f4841cb20bc2fd65a696181e70cbdf2cfb88 /frontends/php/hosts.php
parent2804bdc7c298f114802a93d7c3312370c8602ba0 (diff)
downloadzabbix-3f8cf5f0da75fa8312c173e9e2c1e1e843811091.tar.gz
zabbix-3f8cf5f0da75fa8312c173e9e2c1e1e843811091.tar.xz
zabbix-3f8cf5f0da75fa8312c173e9e2c1e1e843811091.zip
- [DEV-137] changes in users profile system (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5782 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.php')
-rw-r--r--frontends/php/hosts.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php
index 730ce160..e27227f0 100644
--- a/frontends/php/hosts.php
+++ b/frontends/php/hosts.php
@@ -128,7 +128,7 @@ include_once 'include/page_header.php';
else if($_REQUEST['config']==0 || $_REQUEST['config']==3)
validate_group(PERM_READ_WRITE,array(),'web.last.conf.groupid');
- update_profile('web.hosts.config',$_REQUEST['config']);
+ update_profile('web.hosts.config',$_REQUEST['config'], PROFILE_TYPE_INT);
?>
<?php
@@ -232,7 +232,7 @@ include_once 'include/page_header.php';
}
}
else{
- if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY,get_current_nodeid())))
+ if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY)))
access_deny();
}
@@ -325,7 +325,7 @@ include_once 'include/page_header.php';
}
}
else{
- if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY,get_current_nodeid())))
+ if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY)))
access_deny();
}
@@ -369,7 +369,7 @@ include_once 'include/page_header.php';
}
if($result){
- update_profile('HOST_PORT',$_REQUEST['port']);
+ update_profile('HOST_PORT',$_REQUEST['port'], PROFILE_TYPE_INT);
DBstart();
delete_host_profile($hostid);
@@ -526,7 +526,7 @@ include_once 'include/page_header.php';
$groupid = $_REQUEST["groupid"];
}
else {
- if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY,get_current_nodeid())))
+ if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY)))
access_deny();
DBstart();
@@ -728,7 +728,7 @@ include_once 'include/page_header.php';
$hostid = $_REQUEST["hostid"];
}
else {
- if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY,get_current_nodeid())))
+ if(!count(get_accessible_nodes_by_user($USER_DETAILS,PERM_READ_WRITE,PERM_RES_IDS_ARRAY)))
access_deny();
$hostid &= add_proxy($_REQUEST["host"], $hosts);