summaryrefslogtreecommitdiffstats
path: root/template/en/default/account/prefs
diff options
context:
space:
mode:
authorMarc Schumann <bugzilla.1.wurblzap@spamgourmet.com>2013-06-11 18:15:55 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2013-06-11 18:15:55 +0200
commita39f638eee6327e0a003dbde6dd51934979b3cc7 (patch)
treec13397cfd3360e25bfd23b9c855655322fbbdfbd /template/en/default/account/prefs
parent36d7206511745cf633956bb2375ef511eb2f3854 (diff)
downloadbugzilla-a39f638eee6327e0a003dbde6dd51934979b3cc7.tar.gz
bugzilla-a39f638eee6327e0a003dbde6dd51934979b3cc7.tar.xz
Bug 875377: Hint how to change the email address should only be displayed if the address can be changed
r/a=LpSolit
Diffstat (limited to 'template/en/default/account/prefs')
-rw-r--r--template/en/default/account/prefs/email.html.tmpl12
1 files changed, 7 insertions, 5 deletions
diff --git a/template/en/default/account/prefs/email.html.tmpl b/template/en/default/account/prefs/email.html.tmpl
index ef8d0ae29..9a5f22a8c 100644
--- a/template/en/default/account/prefs/email.html.tmpl
+++ b/template/en/default/account/prefs/email.html.tmpl
@@ -28,11 +28,13 @@
</div>
[% END %]
-<p>
- If you want to change your e-mail address <b>[% user.email FILTER html %]</b>
- to which [% terms.Bugzilla %] sends notifications, click the "Account
- Information" tab above.
-</p>
+[% IF user.authorizer.can_change_email && Param('allowemailchange') %]
+ <p>
+ If you want to change your e-mail address
+ <b>[% user.email FILTER html %]</b> to which [% terms.Bugzilla %] sends
+ notifications, click the "Account Information" tab above.
+ </p>
+[% END %]
<p>
If you don't like getting a notification for "trivial"