diff options
author | alecpl <alec@alec.pl> | 2009-04-22 06:43:03 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-04-22 06:43:03 +0000 |
commit | ac9927c1ff3ab04175979a2b7a949d6887253e5c (patch) | |
tree | 8017ffea40a295de30b3e2996c401f9777bb69a8 | |
parent | 324f985e4784378d79b46263eea61846e706652c (diff) |
- check identities_level when creating identities for new user
-rw-r--r-- | program/include/rcube_user.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php index b68c56cfa..9d4d67589 100644 --- a/program/include/rcube_user.php +++ b/program/include/rcube_user.php @@ -385,7 +385,11 @@ class rcube_user if (empty($email_list)) $email_list[] = strip_newlines($user_email); - // also create new identity records + // identities_level check + if (count($email_list) > 1 && $rcmail->config->get('identities_level', 0) > 1) + $email_list = array($email_list[0]); + + // create new identities records $standard = 1; foreach ($email_list as $email) { $dbh->query( |