summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8835813)
raw | patch | inline | side by side (parent: 8835813)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Sep 2007 13:48:13 +0000 (13:48 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Sep 2007 13:48:13 +0000 (13:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7308 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupGeneric.inc | patch | blob | history | |
plugins/personal/generic/class_user.inc | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index da836f268985ef296f1b6b3123221a5b02a036cc..aad633524e04bfe4717a8379c9c48a03b65d2ca6 100644 (file)
$acl -> save();
}
+ /* Remove ACL dependencies too,
+ */
+ $tmp = new acl($this->config,$this->parent,$this->dn);
+ $tmp->remove_acl();
+
/* Send signal to the world that we've done */
$this->handle_post_events("remove");
}
$this->cleanup();
$ldap->$mode($this->attrs);
+ /* Remove ACL dependencies too,
+ */
+ if($this->dn != $this->orig_dn && $this->orig_dn != "new"){
+ $tmp = new acl($this->config,$this->parent,$this->dn);
+ $tmp->update_acl_membership($this->orig_dn,$this->dn);
+ }
+
if($this->initially_was_account){
new log("modify","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}else{
index 27d617d8c674d9a829a8d2dd9b5144f534514f1e..617c7eacaff81cd72b8c8fdb35d55a22670b7b03 100644 (file)
/* Remove ACL dependencies too,
*/
- $tmp = new acl($this->config,$this->parent,$this->dn);
- $tmp->update_acl_membership($this->orig_dn,$this->dn);
+ if($this->dn != $this->orig_dn && $this->orig_dn != "new"){
+ $tmp = new acl($this->config,$this->parent,$this->dn);
+ $tmp->update_acl_membership($this->orig_dn,$this->dn);
+ }
if($mode == "modify"){
new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());