From 2e1dbee93cc7c27137e9c40b3ea68dd7525530c8 Mon Sep 17 00:00:00 2001 From: thomasb Date: Mon, 15 Sep 2008 14:53:57 +0000 Subject: Redesign of the identities settings + add config option to disable multiple identities git-svn-id: https://svn.roundcube.net/trunk@1796 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/settings/save_identity.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/steps/settings/save_identity.inc') diff --git a/roundcubemail/program/steps/settings/save_identity.inc b/roundcubemail/program/steps/settings/save_identity.inc index 1eb9a9026..de2b4fc19 100644 --- a/roundcubemail/program/steps/settings/save_identity.inc +++ b/roundcubemail/program/steps/settings/save_identity.inc @@ -77,7 +77,7 @@ if ($_POST['_iid']) } // insert a new identity record -else +else if ($RCMAIL->config->get('multiple_identities', true)) { if ($insert_id = $USER->insert_identity($save_data)) { @@ -96,6 +96,8 @@ else return; } } +else + $OUTPUT->show_message('opnotpermitted', 'error'); // mark all other identities as 'not-default' -- cgit v1.2.3