index bbfdefc4ba027ef02c1c16c384b36b0386e49f7f..cf904605e1f9d06dd4dc47bb2f497f405258102c 100644 (file)
/* Handle posts */
if (isset($_POST['new_acl'])){
$this->dialogState= 'create';
+ $this->dialog= TRUE;
$this->currentIndex= count($this->gosaAclEntry);
$this->loadAclEntry(TRUE);
}
/* Actions... */
if (preg_match('/^acl_edit_.*_x/', $name)){
$this->dialogState= 'create';
+ $this->dialog= TRUE;
$this->currentIndex= preg_replace('/^acl_edit_([0-9]+).*$/', '\1', $name);
$this->loadAclEntry();
continue;
/* Cancel new acl? */
if (isset($_POST['cancel_new_acl'])){
$this->dialogState= 'head';
+ $this->dialog= FALSE;
if ($this->wasNewEntry){
unset ($this->gosaAclEntry[$this->currentIndex]);
}
$this->gosaAclEntry[$this->currentIndex]['members']= $this->recipients;
$this->gosaAclEntry[$this->currentIndex]['acl']= $this->aclContents;
$this->dialogState= 'head';
+ $this->dialog= FALSE;
}
/* Cancel edit acl? */
/* Show main page */
$smarty->assign("dialogState", $this->dialogState);
- return ($smarty->fetch (get_template_path('contents.tpl', TRUE)));
+ return ($smarty->fetch (get_template_path('contents.tpl', TRUE, get_base_dir().'/plugins/admin/acl')));
}