summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2005-01-16 23:07:31 +0100
committerjocuri%softhome.net <>2005-01-16 23:07:31 +0100
commita1d58085aa7e7c2d3e1342b92c4887b0d22926f1 (patch)
tree282b82eb7d968d37e79f8926018dbe83d8f9b02f /template/en/default/global
parent0d26bef4816cffaf4ccd068162130b1af6b32fdb (diff)
downloadbugzilla-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.gz
bugzilla-a1d58085aa7e7c2d3e1342b92c4887b0d22926f1.tar.xz
Patch for bug 265898: edit*.cgi files should all use ThrowUserError(); patch by Frédéric Buclin <LpSolit@gmail.com>, r=vladd, a=myk.
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/user-error.html.tmpl90
1 files changed, 58 insertions, 32 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index d2852e80c..aa4a43286 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -17,6 +17,7 @@
# Rights Reserved.
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
+ # Frédéric Buclin <LpSolit@netscape.net>
#%]
[%# INTERFACE:
@@ -96,14 +97,60 @@
account creation. Please contact an administrator to get a new account
created.
- [% ELSIF error == "auth_cant_edit_groups" %]
- [% title = "Not authorized to edit groups" %]
- Sorry, you aren't a member of the 'creategroups' group. And so,
- you aren't allowed to edit the groups.
+ [% ELSIF error == "auth_failure" %]
+ [% title = "Authorization Required" %]
+ Sorry,
+ [% IF group %]
+ you aren't a member of the '[% group FILTER html %]' group,
+ [% END %]
+
+ [% IF reason %]
+ [% IF group %] and [% END %]
+ [% IF reason == "cant_bless" %]
+ you don't have permissions to put people in or out of any group,
+ [% END %]
+ [% END %]
+
+ and so you aren't allowed to
+ [% IF action == "add" %]
+ add new
+ [% ELSIF action == "modify" %]
+ modify
+ [% ELSIF action == "delete" %]
+ delete
+ [% ELSIF action == "edit" %]
+ add, modify or delete
+ [% ELSIF action == "schedule" %]
+ schedule
+ [% ELSIF action == "use" %]
+ use
+ [% END %]
- [% ELSIF error == "authorization_failure" %]
- [% title = "Authorization Failed" %]
- You are not allowed to [% action FILTER html %].
+ [% IF object == "charts" %]
+ the "New Charts" feature
+ [% ELSIF object == "classifications" %]
+ classifications
+ [% ELSIF object == "components" %]
+ components
+ [% ELSIF object == "flagtypes" %]
+ flag types
+ [% ELSIF object == "groups" %]
+ groups
+ [% ELSIF object == "keywords" %]
+ keywords
+ [% ELSIF object == "milestones" %]
+ milestones
+ [% ELSIF object == "parameters" %]
+ parameters
+ [% ELSIF object == "products" %]
+ products
+ [% ELSIF object == "reports" %]
+ whine reports
+ [% ELSIF object == "users" %]
+ users
+ [% ELSIF object == "versions" %]
+ versions
+ [% END %].
[% ELSIF error == "attachment_access_denied" %]
[% title = "Access Denied" %]
@@ -146,11 +193,6 @@
[% title = "Classification Not Enabled" %]
Sorry, classification is not enabled.
- [% ELSIF error == "auth_cant_edit_classifications" %]
- [% title = "Access Denied" %]
- Sorry, you aren't a member of the 'editclassifications' group, and so
- you aren't allowed to add, modify or delete classifications.
-
[% ELSIF error == "classification_not_specified" %]
[% title = "You Must Supply A Classification Name" %]
You must enter a classification name.
@@ -176,16 +218,6 @@
Sorry, but you can not delete the default classification,
'[% name FILTER html %]'.
- [% ELSIF error == "auth_cant_edit_components" %]
- [% title = "Access Denied" %]
- Sorry, you aren't a member of the 'editcomponents' group, and so
- you aren't allowed to add, modify or delete components.
-
- [% ELSIF error == "auth_cant_edit_milestones" %]
- [% title = "Access Denied" %]
- Sorry, you aren't a member of the 'editcomponents' group, and so
- you aren't allowed to add, modify or delete milestones.
-
[% ELSIF error == "auth_cant_edit_versions" %]
[% title = "Access Denied" %]
Sorry, you aren't a member of the 'editcomponents' group, and so
@@ -555,11 +587,6 @@
[% title = "Invalid Username Or Password" %]
The username or password you entered is not valid.
- [% ELSIF error == "keyword_access_denied" %]
- [% title = "Access Denied" %]
- Sorry, you aren't a member of the 'editkeywords' group, and so
- you aren't allowed to add, modify or delete keywords.
-
[% ELSIF error == "keyword_already_exists" %]
[% title = "Keyword Already Exists" %]
A keyword with the name [% name FILTER html %] already exists.
@@ -958,6 +985,10 @@
The version '[% version FILTER html %]' for product
'[% product FILTER html %]' does not exist.
+ [% ELSIF error == "users_deletion_disabled" %]
+ [% title = "Deletion not activated" %]
+ Sorry, the deletion of user accounts is not allowed.
+
[% ELSIF error == "votes_must_be_nonnegative" %]
[% title = "Votes Must Be Non-negative" %]
Only use non-negative numbers for your [% terms.bug %] votes.
@@ -979,11 +1010,6 @@
Value is out of range for field
<em>[% field_descs.$field FILTER html %]</em>.
- [% ELSIF error == "whine_access_denied" %]
- [% title = "Access Denied" %]
- Sorry, you aren't a member of the 'bz_canusewhines' group, and so
- you aren't allowed to schedule whine reports.
-
[% ELSIF error == "zero_length_file" %]
[% title = "File Is Empty" %]
The file you are trying to attach is empty!