]> git.tokkee.org Git - gosa.git/commitdiff

Code

Updated shared folders
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Oct 2010 14:28:21 +0000 (14:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Oct 2010 14:28:21 +0000 (14:28 +0000)
-Added a check to prevent renaming the group while the groupware extension is active

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20037 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc

index a928e33aa779984bea5a82e575b864cca7fd5e0e..4a6cad9f3633f0bccb2825b7ddbf3344bc3ea2d9 100644 (file)
@@ -303,6 +303,14 @@ class GroupwareSharedFolder extends plugin
         if(isset($this->parent->by_object['group']->cn)){
             $this->cn = &$this->parent->by_object['group']->cn;
         }
+
+        // Check if group name has changed, this is not allowed while a groupware extension is active.
+        if($this->initially_was_account && $this->cn != $this->orig_cn && $this->orig_cn != ""){
+            $messages[] = sprintf(
+                _("Groups cannot be renamed, while their groupware extension is active, please use the intial name '%s' again!"),
+                $this->orig_cn);
+        }
+
         return($messages);
     }