From 84f99822ac86603b253790748ece90850ddae39d Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 5 Feb 2007 06:12:25 +0000 Subject: [PATCH] updated acl update function git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5689 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 1335565b0..6cbec1b4e 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1561,14 +1561,14 @@ class plugin /* Check if member match current dn */ foreach($members as $key => $member){ - $member = base64_decode($member); if($member == $old_dn){ $found = true; $members[$key] = base64_encode($new_dn); } } - + + /* Create new member string */ $new_members = ""; foreach($members as $member){ $new_members .= $member.","; @@ -1576,21 +1576,24 @@ class plugin $new_members = preg_replace("/,$/","",$new_members); $acl_parts[2] = $new_members; + /* Reconstruckt acl entry */ $acl_str =""; foreach($acl_parts as $t){ - $acl_str .= $t.":"; + $acl_str .= $t.":"; } $acl_str = preg_replace("/:$/","",$acl_str); - - $acls[] = $acl_str; - } /* Acls for this object must be adjusted */ if($found){ if($output_changes){ - echo "Changing ACL dn from :
 -  to".$old_dn."
 - ".$new_dn."

"; + echo "". + _("Changing ACL dn")." : 
 -"._("from")."  ". + $old_dn. + "
 -"._("to")." ". + $new_dn. + "

"; } $update[$attrs['dn']] =array(); foreach($acls as $acl){ -- 2.30.2