summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b496ada)
raw | patch | inline | side by side (parent: b496ada)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 1 Jul 2009 06:29:06 +0000 (06:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 1 Jul 2009 06:29:06 +0000 (06:29 +0000) |
-Preset mail attribute if mail address has to equal the objects cn
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13860 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13860 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/admin/groups/mail/class_groupMail.inc | patch | blob | history |
diff --git a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc
index f87faa424fb27f19f6b7bbb08662c9dcd405f46f..5bdd24b240087ad5e9fb0f9587beaa8ae454a5ca 100644 (file)
var $orig_cn = "";
var $show_effective_memeber = FALSE;
- function __construct (&$config, $dn= NULL, $ui= NULL)
+ function __construct (&$config, $dn= NULL, $base_object= NULL)
{
plugin::plugin($config, $dn);
*/
$this->initially_was_account = $this->is_account;
+ /* While we are not not allowed to modify the mail address
+ * and this is a new mail account, preset the user part of the
+ * mail address with the accounts cn.
+ */
+ if(!$this->mailMethod->isModifyableMail() && !$this->initially_was_account){
+ $this->mail = &$base_object->cn;
+ }
+
/* Load folder_acls with defaults.
anyone -- The default acl, will be written to ldap.
member -- The ACL used for the members.