summaryrefslogtreecommitdiffstats
path: root/editkeywords.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-09-16 07:01:56 +0200
committerlpsolit%gmail.com <>2005-09-16 07:01:56 +0200
commit0e9fdfdcb1b423f9d26747d779bf3d368b92ced1 (patch)
tree4efe75517a68809a853913add2d16b4be08ce931 /editkeywords.cgi
parentb0fbfe878dd8194fbfb7c783e3e5498c50a2f8d9 (diff)
downloadbugzilla-0e9fdfdcb1b423f9d26747d779bf3d368b92ced1.tar.gz
bugzilla-0e9fdfdcb1b423f9d26747d779bf3d368b92ced1.tar.xz
Bug 304696: Replace UserInGroup() by $user->in_group() when checking user privs in edit*.cgi files - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-xeditkeywords.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/editkeywords.cgi b/editkeywords.cgi
index bca94dba0..77b8f0a22 100755
--- a/editkeywords.cgi
+++ b/editkeywords.cgi
@@ -28,7 +28,6 @@ require "globals.pl";
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Config qw(:DEFAULT $datadir);
-use Bugzilla::User;
my $cgi = Bugzilla->cgi;
my $dbh = Bugzilla->dbh;
@@ -60,11 +59,11 @@ sub Validate {
# Preliminary checks:
#
-Bugzilla->login(LOGIN_REQUIRED);
+my $user = Bugzilla->login(LOGIN_REQUIRED);
print $cgi->header();
-UserInGroup("editkeywords")
+$user->in_group('editkeywords')
|| ThrowUserError("auth_failure", {group => "editkeywords",
action => "edit",
object => "keywords"});