From 9db4f48593ba0f638c8e93a76fff402d988c7505 Mon Sep 17 00:00:00 2001 From: Boris Gulay Date: Fri, 20 May 2016 18:40:30 +0300 Subject: [PATCH] Do now show connection options for default identity. --- ident_switch.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ident_switch.php b/ident_switch.php index 83d22e1..1b4d073 100644 --- a/ident_switch.php +++ b/ident_switch.php @@ -125,6 +125,11 @@ class ident_switch extends rcube_plugin function on_identity_form($args) { $rc = rcmail::get_instance(); + + // Do now show options for default identity + if (strcasecmp($args['record']['email'], $rc->user->data['username']) === 0) + return $args; + $this->add_texts('localization'); // Create our field set