summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/settings/save_identity.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-15 14:53:57 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-15 14:53:57 +0000
commit2e1dbee93cc7c27137e9c40b3ea68dd7525530c8 (patch)
tree6e03e10694695d40d7e03e688f81b7032770ad41 /roundcubemail/program/steps/settings/save_identity.inc
parent62d14492c7099297c8d64548cb581af463311953 (diff)
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
Diffstat (limited to 'roundcubemail/program/steps/settings/save_identity.inc')
-rw-r--r--roundcubemail/program/steps/settings/save_identity.inc4
1 files changed, 3 insertions, 1 deletions
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'