jeremie kornobis
2012-11-26 c753bc4a8bc96680e0534ab115cb2f0f1fc67512
unset email address with new level entity 4
1 files modified
9 ■■■■■ changed files
program/steps/settings/save_identity.inc 9 ●●●●● patch | view | raw | blame | history
program/steps/settings/save_identity.inc
@@ -54,6 +54,15 @@
// unset email address if user has no rights to change it
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']));