]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 875377: Hint how to change the email address should only be displayed if the...
authorMarc Schumann <bugzilla.1.wurblzap@spamgourmet.com>
Tue, 11 Jun 2013 16:17:27 +0000 (18:17 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 11 Jun 2013 16:17:27 +0000 (18:17 +0200)
r/a=LpSolit

template/en/default/account/prefs/email.html.tmpl

index c70b9d1ba4fd54a79294b95f759a6da8bbc2a656..57fa60f3b4cdbba9e6411975e46b51658d434b66 100644 (file)
   </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"