Patch for bug 265898: edit*.cgi files should all use ThrowUserError(); patch by Frédéric Buclin <LpSolit@gmail.com>, r=vladd, a=myk.
git-svn-id: svn://10.0.0.236/trunk@167820 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -117,11 +117,10 @@ Bugzilla->login(LOGIN_REQUIRED);
|
||||
|
||||
print Bugzilla->cgi->header();
|
||||
|
||||
unless (UserInGroup("editcomponents")) {
|
||||
ThrowUserError('auth_cant_edit_components');
|
||||
exit;
|
||||
}
|
||||
|
||||
UserInGroup("editcomponents")
|
||||
|| ThrowUserError("auth_failure", {group => "editcomponents",
|
||||
action => "edit",
|
||||
object => "components"});
|
||||
|
||||
#
|
||||
# often used variables
|
||||
|
||||
Reference in New Issue
Block a user