summaryrefslogtreecommitdiffstats
path: root/frontends/php/popup_right.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-16 15:21:11 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-16 15:21:11 +0000
commit754a5bf398616c0beed4f9e1695b5f918d007e09 (patch)
tree9f5b59e2448abd52c436e520d0239734f9f8ecd2 /frontends/php/popup_right.php
parent6ee79495486867686d8cba035b38ee078d8516b0 (diff)
downloadzabbix-754a5bf398616c0beed4f9e1695b5f918d007e09.tar.gz
zabbix-754a5bf398616c0beed4f9e1695b5f918d007e09.tar.xz
zabbix-754a5bf398616c0beed4f9e1695b5f918d007e09.zip
- [DEV-178] improved the permissions scheme (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5773 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/popup_right.php')
-rw-r--r--frontends/php/popup_right.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/php/popup_right.php b/frontends/php/popup_right.php
index 32645ac3..e382b5ea 100644
--- a/frontends/php/popup_right.php
+++ b/frontends/php/popup_right.php
@@ -41,7 +41,7 @@ include_once "include/page_header.php";
$dstfrm = get_request("dstfrm", 0); // destination form
$permission = get_request("permission", PERM_DENY); // right
- $type = get_request("type", get_profile('web.right_type.last', RESOURCE_TYPE_GROUP)); // type of resource
+ $type = get_request("type", RESOURCE_TYPE_GROUP); // type of resource
update_profile('web.right_type.last', $type);
?>
@@ -83,8 +83,8 @@ function add_right(formname,type,id,permission,name)
$frmTitle = new CForm();
$frmTitle->AddVar('dstfrm',$dstfrm);
$frmTitle->AddVar('permission', $permission);
- if(ZBX_DISTRIBUTED)
- {
+/*
+ if(ZBX_DISTRIBUTED){
$cmbResourceType = new CComboBox('type',$type,'submit();');
$cmbResourceType->AddItem(RESOURCE_TYPE_NODE, S_NODES);
$cmbResourceType->AddItem(RESOURCE_TYPE_GROUP, S_HOST_GROUPS);
@@ -92,6 +92,7 @@ function add_right(formname,type,id,permission,name)
S_RESOURCE_TYPE, SPACE,
$cmbResourceType));
}
+//*/
show_table_header(permission2str($permission),$frmTitle);
$table = new CTableInfo(S_NO_RESOURCES_DEFINED);