summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3d7f9d)
raw | patch | inline | side by side (parent: a3d7f9d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Dec 2006 06:45:36 +0000 (06:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Dec 2006 06:45:36 +0000 (06:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5308 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofax/blocklists/class_blocklistManagement.inc | patch | blob | history |
diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc
index 5d96251d40af85b590e3b61451ce99d23ee4a130..4007c79bdec9fee5832c13bae7504347b64ea84d 100644 (file)
$this->ui = $ui;
$this->dn = "";
$this->config = $config;
-
+ $this->base = $_SESSION['CurrentMainBase'];
$this->DivListBlocklist = new divListBlocklist($this->config,$this);
+ $this->set_acl_category("gofaxlist");
+ $this->set_acl_base($this->base);
}
function execute()
isset($_POST['delete_blocklist_confirm']) ||
isset($_POST['delete_lock'])){
+ del_lock ($this->dn);
if(!isset($_POST['delete_blocklist_confirm'])){
$this->clear_fields();
}
- del_lock ($this->dn);
unset($_SESSION['objectinfo']);
}
if($this->dn){
$dn = $this->dn;
+
+ /* set Account states, this is nescessary for get_allowed_bases */
+ $this->initially_was_account= true;
+ $this->is_account = true;
if($dn == "new"){
$dn = "cn=dummy,ou=gofax,ou=systems,".$this->base;
+ $this->initially_was_account= false;
}
$this->set_acl_category("gofaxlist");
$this->set_acl_base($dn);
-
/* Base select dialog */
$once = true;
foreach($_POST as $name => $value){
/* Fill templating stuff */
$smarty->assign("bases", $this->get_allowed_bases());
+
$smarty->assign("base_select", $this->base);
$smarty->assign("types", array(0 => _("send"), 1 => _("receive")));
if ($this->dn == "new" || preg_match ("/,ou=incoming,/", $this->dn)){