summaryrefslogtreecommitdiffstats
path: root/quips.cgi
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-03-10 01:18:03 +0100
committertravis%sedsystems.ca <>2005-03-10 01:18:03 +0100
commit672d71471ee2ddae6005a9259789899c41264823 (patch)
treeaac906cd42b2873fca45baeff2a1100b321b70ac /quips.cgi
parent82bc36a9ccc7a9a0808c2d4c0e8b7d44eb1e63dd (diff)
downloadbugzilla-672d71471ee2ddae6005a9259789899c41264823.tar.gz
bugzilla-672d71471ee2ddae6005a9259789899c41264823.tar.xz
Bug 282574 : use the new "auth_failure" error message for all authentication failures
Patch by Frederic Buclin <LpSolit@gmail.com> r=travis, wurblzap a=myk
Diffstat (limited to 'quips.cgi')
-rwxr-xr-xquips.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/quips.cgi b/quips.cgi
index 0e0c13d08..dc0106450 100755
--- a/quips.cgi
+++ b/quips.cgi
@@ -119,9 +119,10 @@ if ($action eq 'approve') {
}
if ($action eq "delete") {
- if (!UserInGroup('admin')) {
- ThrowUserError("quips_edit_denied");
- }
+ UserInGroup("admin")
+ || ThrowUserError("auth_failure", {group => "admin",
+ action => "delete",
+ object => "quips"});
my $quipid = $cgi->param("quipid");
ThrowCodeError("need_quipid") unless $quipid =~ /(\d+)/;
$quipid = $1;