diff options
author | jocuri%softhome.net <> | 2005-01-16 23:07:31 +0100 |
---|---|---|
committer | jocuri%softhome.net <> | 2005-01-16 23:07:31 +0100 |
commit | a1d58085aa7e7c2d3e1342b92c4887b0d22926f1 (patch) | |
tree | 282b82eb7d968d37e79f8926018dbe83d8f9b02f /editclassifications.cgi | |
parent | 0d26bef4816cffaf4ccd068162130b1af6b32fdb (diff) | |
download | bugzilla-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 'editclassifications.cgi')
-rwxr-xr-x | editclassifications.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editclassifications.cgi b/editclassifications.cgi index c1186f792..777e76f75 100755 --- a/editclassifications.cgi +++ b/editclassifications.cgi @@ -78,7 +78,11 @@ Bugzilla->login(LOGIN_REQUIRED); print $cgi->header(); -ThrowUserError("auth_cant_edit_classifications") unless UserInGroup("editclassifications"); +UserInGroup("editclassifications") + || ThrowUserError("auth_failure", {group => "editclassifications", + action => "edit", + object => "classifications"}); + ThrowUserError("auth_classification_not_enabled") unless Param("useclassification"); # |