aboutsummaryrefslogtreecommitdiffstats
path: root/quips.cgi
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-03-10 00:18:03 +0000
committertravis%sedsystems.ca <>2005-03-10 00:18:03 +0000
commit672d71471ee2ddae6005a9259789899c41264823 (patch)
treeaac906cd42b2873fca45baeff2a1100b321b70ac /quips.cgi
parent82bc36a9ccc7a9a0808c2d4c0e8b7d44eb1e63dd (diff)
downloadbugs-672d71471ee2ddae6005a9259789899c41264823.tar
bugs-672d71471ee2ddae6005a9259789899c41264823.tar.gz
bugs-672d71471ee2ddae6005a9259789899c41264823.tar.bz2
bugs-672d71471ee2ddae6005a9259789899c41264823.tar.xz
bugs-672d71471ee2ddae6005a9259789899c41264823.zip
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;