From a1d58085aa7e7c2d3e1342b92c4887b0d22926f1 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 16 Jan 2005 22:07:31 +0000 Subject: =?UTF-8?q?Patch=20for=20bug=20265898:=20edit*.cgi=20files=20shoul?= =?UTF-8?q?d=20all=20use=20ThrowUserError();=20patch=20by=20Fr=C3=A9d?= =?UTF-8?q?=C3=A9ric=20Buclin=20,=20r=3Dvladd,=20a=3Dmy?= =?UTF-8?q?k.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editclassifications.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'editclassifications.cgi') diff --git a/editclassifications.cgi b/editclassifications.cgi index c1186f792..777e76f75 100755 --- a/editclassifications.cgi +++ b/editclassifications.cgi @@ -78,7 +78,11 @@ Bugzilla->login(LOGIN_REQUIRED); print $cgi->header(); -ThrowUserError("auth_cant_edit_classifications") unless UserInGroup("editclassifications"); +UserInGroup("editclassifications") + || ThrowUserError("auth_failure", {group => "editclassifications", + action => "edit", + object => "classifications"}); + ThrowUserError("auth_classification_not_enabled") unless Param("useclassification"); # -- cgit v1.2.1