From ac9927c1ff3ab04175979a2b7a949d6887253e5c Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 22 Apr 2009 06:43:03 +0000 Subject: - check identities_level when creating identities for new user --- program/include/rcube_user.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'program/include/rcube_user.php') 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( -- cgit v1.2.3