summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d21c49)
raw | patch | inline | side by side (parent: 3d21c49)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jan 2010 10:01:39 +0000 (10:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jan 2010 10:01:39 +0000 (10:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15359 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc
index acab2b3fa38aedf99983d753de9d02f5cfedd13a..97c6cec30831eda3dd4ae325081c700759d49515 100644 (file)
*********************/
if(isset($_POST['list_sudoHost']) && !is_object($this->dialog) && $this->acl_is_writeable("sudoHost")){
- $used = array();
- foreach($this->sudoHost as $name){
- $used[] = preg_replace("/^!/","",$name);
- }
- $this->dialog =new target_list_systems($this->config,$used);
+ $this->dialog =new systemSelect($this->config,get_userinfo());
}
/* Add selected hosts to the sudoHost list */
- if(isset($_POST['SavetargetSelectDialog']) && $this->dialog instanceof target_list_systems){
+ if(isset($_POST['systemSelect_save']) && $this->dialog instanceof systemSelect){
if($this->acl_is_writeable("sudoHost")){
foreach($this->dialog->save() as $entry){
$cn = trim($entry['cn'][0]);
$this->dialog = NULL;
}
+ if(isset($_POST['systemSelect_cancel']) && $this->dialog instanceOf systemSelect){
+ unset($this->dialog);
+ $this->dialog = NULL;
+ }
+
+ if($this->dialog instanceOf systemSelect){
+ $used = array();
+ foreach($this->sudoHost as $name){
+ $used['cn'][] = preg_replace("/^!/","",$name);
+ }
+ // Build up blocklist
+ session::set('filterBlacklist', $used);
+ return($this->dialog->execute());
+ }
+
/*********************
Dialog handling / display / close
*********************/
- if(isset($_POST['userGroupSelect_cancel']) && is_object($this->dialog)){
- unset($this->dialog);
- $this->dialog = NULL;
- }
-
if(is_object($this->dialog)){
return($this->dialog->execute());
}