summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3367972)
raw | patch | inline | side by side (parent: 3367972)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Dec 2009 15:03:04 +0000 (15:03 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Dec 2009 15:03:04 +0000 (15:03 +0000) |
-We are now able to edit things.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14943 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14943 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/acl/class_aclManagement.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/acl/class_aclManagement.inc b/gosa-core/plugins/admin/acl/class_aclManagement.inc
index ece0a84f8b99ea7a264574241d3bfad8fed5babe..e0a5086220df5375badb6430060a11bdb7b474c4 100644 (file)
var $plIcon = "plugins/acl/images/plugin.png";
// Tab definition
- protected $tabClass = "acltab";
- protected $tabType = "ACLTABS";
+ protected $tabClass = "aclroletab";
+ protected $tabType = "ACLROLETABS";
protected $aclCategory = "acl";
protected $aclPlugin = "acl";
protected $objectName = "acl";
$this->ui = $ui;
$this->storagePoints = array(get_ou("aclRoleRDN")); // ACLs are attached to department containers
-
+
// Build filter
# if (session::global_is_set(get_class($this)."_filter")){
# $filter= session::global_get(get_class($this)."_filter");
}
parent::__construct($config, $ui, "acl", $headpage);
+ }
+
+ 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";
+ }else{
+ $altTabClass = "acltab";
+ }
+ management::editEntry($action,array($this->dn),$all,$altTabClass,$altTabType,$altAclCategory);
+ }
+ }
+
+
+ function detectPostActions()
+ {
+ $action= management::detectPostActions();
+ if(isset($_POST['edit_acl'])) $action['action'] = "edit_acl";
+ if(isset($_POST['edit_role'])) $action['action'] = "edit_role";
+ return($action);
}
+
// A filter which allows to open a department by clicking on the departments name.
static function filterLabel($row,$dn,$ou= array(),$pid=0,$base="")
}
$dn= LDAP::fix(func_get_arg(1));
- return("<a href='?plug=".$_GET['plug']."&PID=$pid&act=listing_open_$row' title='$dn'>$ou</a>");
+ return("<a href='?plug=".$_GET['plug']."&PID=$pid&act=listing_edit_$row' title='$dn'>$ou</a>");
}