Commit e749f733 authored by travis%sedsystems.ca's avatar travis%sedsystems.ca

Bug 278650 : editversions.cgi still uses "auth_cant_edit_versions"

Patch by Frederic Buclin <LpSolit@gmail.com> r=vladd a=justdave
parent 3b3cf885
......@@ -115,11 +115,10 @@ Bugzilla->login(LOGIN_REQUIRED);
print Bugzilla->cgi->header();
unless (UserInGroup("editcomponents")) {
ThrowUserError('auth_cant_edit_versions');
exit;
}
UserInGroup("editcomponents")
|| ThrowUserError("auth_failure", {group => "editcomponents",
action => "edit",
object => "versions"});
#
# often used variables
......
......@@ -218,11 +218,6 @@
Sorry, but you can not delete the default classification,
'[% name FILTER html %]'.
[% ELSIF error == "auth_cant_edit_versions" %]
[% title = "Access Denied" %]
Sorry, you aren't a member of the 'editcomponents' group, and so
you aren't allowed to add, modify or delete versions.
[% ELSIF error == "component_already_exists" %]
[% title = "Component Already Exists" %]
A component with the name '[% name FILTER html %]' already exists.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment