From: hickert Date: Wed, 13 Oct 2010 14:28:21 +0000 (+0000) Subject: Updated shared folders X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ddabed9c6962b25b9ba317cb2d5cbdb5094ee0ba;p=gosa.git Updated shared folders -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 --- diff --git a/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc b/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc index a928e33aa..4a6cad9f3 100644 --- a/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc +++ b/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc @@ -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); }