From 672d71471ee2ddae6005a9259789899c41264823 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Thu, 10 Mar 2005 00:18:03 +0000 Subject: Bug 282574 : use the new "auth_failure" error message for all authentication failures Patch by Frederic Buclin r=travis, wurblzap a=myk --- quips.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'quips.cgi') 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; -- cgit v1.2.3-24-g4f1b