summaryrefslogtreecommitdiff
path: root/program/steps/settings
diff options
context:
space:
mode:
authorjeremie kornobis <jkornobis@linagora.com>2012-11-26 15:06:54 +0100
committerjeremie kornobis <jkornobis@linagora.com>2012-11-26 15:45:33 +0100
commitc753bc4a8bc96680e0534ab115cb2f0f1fc67512 (patch)
tree045917c64c597531a3a2e9bdbcca857256a343e0 /program/steps/settings
parentf12585297974a994bd9b081cd1d70e8ab8d2365e (diff)
unset email address with new level entity 4
Diffstat (limited to 'program/steps/settings')
-rw-r--r--program/steps/settings/save_identity.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/program/steps/settings/save_identity.inc b/program/steps/settings/save_identity.inc
index 7ca54a179..c3b8cc4a7 100644
--- a/program/steps/settings/save_identity.inc
+++ b/program/steps/settings/save_identity.inc
@@ -52,9 +52,18 @@ foreach ($a_boolean_cols as $col)
}
// unset email address if user has no rights to change it
-if (IDENTITIES_LEVEL == 1 || IDENTITIES_LEVEL == 3)
+if (IDENTITIES_LEVEL == 1 || IDENTITIES_LEVEL == 3 )
unset($save_data['email']);
+if (IDENTITIES_LEVEL == 4 ){
+ unset($save_data['name']);
+ unset($save_data['email']);
+ unset($save_data['organization']);
+ unset($save_data['reply-to']);
+ unset($save_data['bcc']);
+ unset($save_data['standard']);
+}
+
// Validate e-mail addresses
$email_checks = array(rcube_idn_to_ascii($save_data['email']));
foreach (array('reply-to', 'bcc') as $item) {