summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8a1c063)
raw | patch | inline | side by side (parent: 8a1c063)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Feb 2007 07:54:34 +0000 (07:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Feb 2007 07:54:34 +0000 (07:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5680 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_plugin.inc | patch | blob | history | |
plugins/admin/departments/class_departmentGeneric.inc | patch | blob | history |
index 0b50f3fd348f4b78cb36d43647f3049b42480185..3b8508967df9692daba2b6a74a42363ccfb7b238 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
* $old_dn specifies the actually used dn
* $new_dn specifies the destiantion dn
*/
- function update_acls($old_dn,$new_dn)
+ function update_acls($old_dn,$new_dn,$output_changes = FALSE)
{
global $config;
/* Acls for this object must be adjusted */
if($found){
- echo "Changing ACL dn from : <br> - <b> to".$old_dn."</b><br> - <b>".$new_dn."</b><br>";
-
+ if($output_changes){
+ echo "<font color='green'>Changing ACL dn from : <br> - <b> to".$old_dn."</b><br> - <b>".$new_dn."</b></font><br>";
+ }
$update[$attrs['dn']] =array();
foreach($acls as $acl){
$update[$attrs['dn']]['gosaAclEntry'][] = $acl;
diff --git a/plugins/admin/departments/class_departmentGeneric.inc b/plugins/admin/departments/class_departmentGeneric.inc
index 3efe8f8fdb27b8400285e58450d0c8d2f8cb3680..31713217b577e5c299f9a8765639f480b99c327e 100644 (file)
echo "<b>"._("Object").":</b> ".@LDAP::fix($src)."<br>";
+ $this->update_acls($object, $dst,TRUE);
+
if (!$this->copy($src, $dst)){
echo "<font color='#FF0000'><br>".sprintf(_("FAILED to copy %s, aborting operation"),@LDAP::fix($src))."</font>";
return (FALSE);