summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7b4beac)
raw | patch | inline | side by side (parent: 7b4beac)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Nov 2006 12:24:14 +0000 (12:24 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Nov 2006 12:24:14 +0000 (12:24 +0000) |
Removed old acl functions.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5034 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5034 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupApplication.inc | patch | blob | history | |
plugins/admin/groups/class_groupManagement.inc | patch | blob | history | |
plugins/admin/groups/main.inc | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index e29898ce92b105956b2f7a1f013b4406f403f3b7..eff39655d6e7d8c3226961119088a7de7606c672 100644 (file)
}
/* Get all apps ... */
- $res = get_list("objectClass=gosaApplication","application",$this->config->current['BASE'],array("gosaApplicationParameter","cn"));
+ $res = get_list("objectClass=gosaApplication","application",$this->config->current['BASE'],array("gosaApplicationParameter","cn"),GL_SUBSEARCH);
$tmp = search_config($this->config->data,"faiManagement","CLASS");
$this->AllAppsForRelease = array();
if(!empty($tmp)){
diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc
index 0415f1d86babeb63d21c687231b3b97e5141bd24..f167c143241118c8c3ed2dfde70e5fdf50812f94 100644 (file)
var $plDescription= "This does something";
/* Dialog attributes */
- var $grouptab= NULL;
- var $grouplist= array();
- var $ui= NULL;
- var $acl= "";
-
- var $CopyPasteHandler = NULL;
- var $DivListGroup = NULL;
-
- var $ShowPrimaryCheckBox = false;
+ var $grouptab = NULL;
+ var $grouplist = array();
+ var $ui = NULL;
+ var $CopyPasteHandler = NULL;
+ var $DivListGroup = NULL;
+ var $ShowPrimaryCheckBox= false;
function groupManagement ($config, $ui)
{
/* Save configuration for internal use */
- $this->config= $config;
- $this->ui= $ui;
+ $this->config = $config;
+ $this->ui = $ui;
/* Copy & Paste enabled ?*/
if((isset($this->config->data['MAIN']['ENABLECOPYPASTE']))&&(preg_match("/true/i",$this->config->data['MAIN']['ENABLECOPYPASTE']))){
$this->DivListGroup->DisableCheckBox("ShowPrimaryGroups",$this->ShowPrimaryCheckBox);
}
+
function execute()
{
/* Call parent execute */
/* Load permissions for selected 'dn' and check if
we're allowed to remove this 'dn' */
- $acl = $this->ui->get_permission($this->dn,"groups/group");
+ $acl = $this->ui->get_permissions($this->dn,"groups/group");
if(preg_match("/d/",$acl)){
/* Check locking, save current plugin in 'back_plugin', so
/* Some nice guy may send this as POST, so we've to check
for the permissions again. */
- $acl = $this->ui->get_permission($this->dn,"groups/group");
+ $acl = $this->ui->get_permissions($this->dn,"groups/group");
if(preg_match("/d/",$acl)){
/* Delete request is permitted, perform LDAP action */
$this->grouptab= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $this->dn);
- $this->grouptab->set_acl(array($this->acl));
+ $this->grouptab->set_acl_base($this->dn);
$this->grouptab->delete ();
gosa_log ("Group object'".$this->dn."' has been removed");
unset ($this->grouptab);
$acl = get_permissions ($dn, $this->ui->subtreeACL);
$obj = new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $dn);
+ $obj->set_acl_base($dn);
$objNew = new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], "new");
- $obj->set_acl($acl);
- $objNew->set_acl($acl);
+ $obj->set_acl_base($dn);
+
$this->CopyPasteHandler->Copy($obj,$objNew);
}
$acl= get_permissions ($dn, $this->ui->subtreeACL);
$obj= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $dn);
- $obj->set_acl($acl);
+ $obj->set_acl_base($dn);
$this->CopyPasteHandler->Cut($obj);
}
index 5a86bbee3f8ea8b32aac4d0db6b82eb6f494f64c..3a12101639059f7144440501bc859d5cc743d6c0 100644 (file)
sess_del ('groupManagement');
}
-
/* Show and save dialog */
$_SESSION['groupManagement']= $groupManagement;
}