summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-22 06:43:03 +0000
committeralecpl <alec@alec.pl>2009-04-22 06:43:03 +0000
commitac9927c1ff3ab04175979a2b7a949d6887253e5c (patch)
tree8017ffea40a295de30b3e2996c401f9777bb69a8
parent324f985e4784378d79b46263eea61846e706652c (diff)
- check identities_level when creating identities for new user
-rw-r--r--program/include/rcube_user.php6
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(