diff options
author | travis%sedsystems.ca <> | 2005-03-10 00:18:03 +0000 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-03-10 00:18:03 +0000 |
commit | 672d71471ee2ddae6005a9259789899c41264823 (patch) | |
tree | aac906cd42b2873fca45baeff2a1100b321b70ac /quips.cgi | |
parent | 82bc36a9ccc7a9a0808c2d4c0e8b7d44eb1e63dd (diff) | |
download | bugs-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-x | quips.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |