summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3845d32)
raw | patch | inline | side by side (parent: 3845d32)
| author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
| Wed, 13 Oct 2010 14:28:21 +0000 (14:28 +0000) | ||
| committer | hickert <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
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 | patch | blob | history |
diff --git a/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc b/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc
index a928e33aa779984bea5a82e575b864cca7fd5e0e..4a6cad9f3633f0bccb2825b7ddbf3344bc3ea2d9 100644 (file)
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);
}