diff --git a/gosa-core/plugins/admin/acl/class_aclManagement.inc b/gosa-core/plugins/admin/acl/class_aclManagement.inc
index cafc830bb7d9e0ebf2499390ed4c7411f4922f87..d43c66a0160e74bef3e7b1aa45f5bcac47219d26 100644 (file)
// Tab definition
protected $tabClass = "aclroletab";
- protected $tabType = "ACLROLETABS";
+ protected $tabType = "ACLROLETAB";
protected $aclCategory = "acl";
protected $aclPlugin = "acl";
protected $objectName = "acl";
- function __construct($config,$ui)
+ function __construct(&$config,$ui)
{
$this->config = $config;
$this->ui = $ui;
$this->snapHandler = new SnapshotHandler($this->config);
}
- parent::__construct($config, $ui, "acl", $headpage);
+ parent::__construct($this->config, $ui, "acl", $headpage);
}
function removeEntryConfirmed($action="",$target=array(),$all=array(),
$altTabClass="",$altTabType="",$altAclCategory="")
{
- $tabType = $this->tabType;
- $tabClass = $this->tabClass;
- $aclCategory = $this->aclCategory;
- $this->config->data['TABS'][$this->tabType] = NULL;
-
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$target,"Entry removel confirmed!");
$headpage = $this->getHeadpage();
if($headpage->getType($dn) == "gosaRole"){
$tabClass = "aclroletab";
+ $tabTape = "ACLROLETAB";
}else{
$tabClass = "acltab";
+ $tabTape = "ACLTAB";
}
// Delete the object
}
+ function newEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
+ {
+ $this->skipFooter = TRUE;
+ $altTabClass = "aclroletab";
+ $altTabType = "ACLROLETAB";
+ return(management::newEntry($action,$target,$all,$altTabClass,$altTabType,$altAclCategory));
+ }
+
function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
{
$this->skipFooter = TRUE;
if(count($target) == 1){
// Set dummy tab object...
- $this->config->data['TABS'][$this->tabType] = NULL;
$this->dn = array_pop($target);
$headpage = $this->getHeadpage();
if($headpage->getType($this->dn) == "gosaRole"){
$altTabClass = "aclroletab";
+ $altTabType = "ACLROLETAB";
}else{
$altTabClass = "acltab";
+ $altTabType = "ACLTAB";
}
- management::editEntry($action,array($this->dn),$all,$altTabClass,$altTabType,$altAclCategory);
+ return(management::editEntry($action,array($this->dn),$all,$altTabClass,$altTabType,$altAclCategory));
}
}