summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ba779b4)
raw | patch | inline | side by side (parent: ba779b4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Nov 2007 11:46:24 +0000 (11:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Nov 2007 11:46:24 +0000 (11:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7940 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiManagement.inc | patch | blob | history |
index f7004efa28e715e5d11955f04a1637d4f14ebf80..6d843311711cdaefb4e6d438993049bef6efdc71 100644 (file)
var $DivListFai;
var $start_pasting_copied_objects = FALSE;
var $CopyPasteHandler = FALSE;
+ var $base = "";
/* construction/reconstruction
*/
* else skip this operation. (Skip:Button in the ui should be disabled in this case too)
*/
if("" != $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs'))){
-
/* Load permissions for selected 'dn' and check if
we're allowed to remove this 'dn' */
- $this->set_acl_base($base);
if($this->acl_is_removeable()){
$smarty->assign("info", sprintf(_("You're about to delete a fai branch / freeze '%s'."), $this->DivListFai->selectedBranch));
if(isset($_GET['PerformBranch'])){
- $base= $this->DivListFai->selectedBranch;
- $this->set_acl_base($base);
if(!$this->acl_is_createable()){
print_red(_("You are not allowed to create a new branch."));
}else{
*/
if("" != $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs'))){
if(($s_action == "branch_branch")||($this->dispNewBranch)){
- $base= $this->DivListFai->selectedBranch;
- $this->set_acl_base($base);
if(!$this->acl_is_createable()){
print_red(_("You are not allowed to create a new branch."));
}else{
*/
if("" != $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs'))){
if(($s_action == "freeze_branch")||($this->dispNewFreeze)){
- $base= $this->DivListFai->selectedBranch;
- $this->set_acl_base($base);
if(!$this->acl_is_createable()){
print_red(_("You are not allowed to create a new branch."));
}else{
if(preg_match("/c/",$acl)){
$a_setup= $this->get_type(array("objectClass"=>array("FAIprofile")));
$this->dialog = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai");
- $this->dialog->set_acl_base($_SESSION['CurrentMainBase']);
+ $this->dialog->set_acl_base($this->base);
$this->is_dialog = false;
}else{
if(class_exists($a_setup[0])){
$this->dialog = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai");
- $this->dialog->set_acl_base($_SESSION['CurrentMainBase']);
+ $this->dialog->set_acl_base($this->base);
$this->dialog->by_object[$a_setup[1]]->cn = $name;
$this->is_dialog = true;
}
$base = "ou=fai,ou=configs,ou=systems,".$this->DivListFai->selectedBase;
}
}
+ $this->base = $base;
+ $this->set_acl_base($this->base);
$this->lock_type = get_release_tag(get_release_dn($base));