aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/global/user-error.html.tmpl
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-08-09 13:45:59 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-08-09 13:45:59 +0200
commit9ec7d139f9ab26fc2cc6986ec72d254d0fdef242 (patch)
treef151e0e128b4e93e1f631a002c621a345c43053a /template/en/default/global/user-error.html.tmpl
parent17a866fde027a1236cfadc7829d0176a60dc4b51 (diff)
downloadbugs-9ec7d139f9ab26fc2cc6986ec72d254d0fdef242.tar
bugs-9ec7d139f9ab26fc2cc6986ec72d254d0fdef242.tar.gz
bugs-9ec7d139f9ab26fc2cc6986ec72d254d0fdef242.tar.bz2
bugs-9ec7d139f9ab26fc2cc6986ec72d254d0fdef242.tar.xz
bugs-9ec7d139f9ab26fc2cc6986ec72d254d0fdef242.zip
Bug 756550: Do not link a bug alias with its bug ID for bugs you cannot see
r=glob a=LpSolit
Diffstat (limited to 'template/en/default/global/user-error.html.tmpl')
-rw-r--r--template/en/default/global/user-error.html.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index fbb9ca169..8f4d7d21c 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -77,9 +77,13 @@
[% ELSIF error == "alias_in_use" %]
[% title = "Alias In Use" %]
- [% terms.Bug %] [%+ bug_id FILTER bug_link(bug_id) FILTER none %]
+ [% IF user.can_see_bug(bug_id) %]
+ [% terms.Bug %] [%+ bug_id FILTER bug_link(bug_id) FILTER none %]
+ [% ELSE %]
+ Another [% terms.bug %]
+ [% END %]
has already taken the alias <em>[% alias FILTER html %]</em>.
- Please choose another one.
+ Please choose another alias.
[% ELSIF error == "alias_is_numeric" %]
[% title = "Alias Is Numeric" %]