summaryrefslogtreecommitdiff
path: root/program/steps/settings/edit_identity.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-28 23:36:50 -0800
committerAleksander Machniak <alec@alec.pl>2012-11-28 23:36:50 -0800
commit48ef1334ff2deca06ce29a73724ea2f40c77a11c (patch)
treecb2fcca393d708a93c5cd7bf530c87ab4917fd7c /program/steps/settings/edit_identity.inc
parent0247b89c38c7f7ef1a2111239c6a1c8c13394d93 (diff)
parentc753bc4a8bc96680e0534ab115cb2f0f1fc67512 (diff)
Merge pull request #49 from linagora/master
Add new identity level: one identity with edit only signature
Diffstat (limited to 'program/steps/settings/edit_identity.inc')
-rw-r--r--program/steps/settings/edit_identity.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/steps/settings/edit_identity.inc b/program/steps/settings/edit_identity.inc
index 39076f408..d70a7aef7 100644
--- a/program/steps/settings/edit_identity.inc
+++ b/program/steps/settings/edit_identity.inc
@@ -99,6 +99,13 @@ function rcube_identity_form($attrib)
$form['addressing']['content']['email']['class'] = 'disabled';
}
+ if (IDENTITIES_LEVEL == 4) {
+ foreach($form['addressing']['content'] as $formfield => $value){
+ $form['addressing']['content'][$formfield]['disabled'] = true;
+ $form['addressing']['content'][$formfield]['class'] = 'disabled';
+ }
+ }
+
$IDENTITY_RECORD['email'] = rcube_idn_to_utf8($IDENTITY_RECORD['email']);
// Allow plugins to modify identity form content