]> 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:15:55 +0000 (18:15 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 11 Jun 2013 16:15:55 +0000 (18:15 +0200)
r/a=LpSolit

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

index ef8d0ae298bd43c8c87559ddf7dd94691491b6e8..9a5f22a8c7074c8d01327847b62147166abdfdba 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"