From a1d58085aa7e7c2d3e1342b92c4887b0d22926f1 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 16 Jan 2005 22:07:31 +0000 Subject: Patch for bug 265898: edit*.cgi files should all use ThrowUserError(); patch by Frédéric Buclin , r=vladd, a=myk. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chart.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chart.cgi') diff --git a/chart.cgi b/chart.cgi index 4bab17701..8b0d3971e 100755 --- a/chart.cgi +++ b/chart.cgi @@ -84,9 +84,10 @@ if ($action eq "search") { Bugzilla->login(LOGIN_REQUIRED); -UserInGroup(Param("chartgroup")) - || ThrowUserError("authorization_failure", - {action => "use this feature"}); +UserInGroup(Param("chartgroup")) + || ThrowUserError("auth_failure", {group => Param("chartgroup"), + action => "use", + object => "charts"}); # Only admins may create public queries UserInGroup('admin') || $cgi->delete('public'); -- cgit v1.2.3-24-g4f1b