aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-09-16 05:01:56 +0000
committerlpsolit%gmail.com <>2005-09-16 05:01:56 +0000
commit0e9fdfdcb1b423f9d26747d779bf3d368b92ced1 (patch)
tree4efe75517a68809a853913add2d16b4be08ce931 /editgroups.cgi
parentBug 308581: Excluding yourself from a restricted bug generates an error if th... (diff)
downloadbugzilla-0e9fdfdcb1b423f9d26747d779bf3d368b92ced1.tar.gz
bugzilla-0e9fdfdcb1b423f9d26747d779bf3d368b92ced1.tar.bz2
bugzilla-0e9fdfdcb1b423f9d26747d779bf3d368b92ced1.zip
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 'editgroups.cgi')
-rwxr-xr-xeditgroups.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/editgroups.cgi b/editgroups.cgi
index f032da728..d457303f1 100755
--- a/editgroups.cgi
+++ b/editgroups.cgi
@@ -31,7 +31,6 @@ use lib ".";
use Bugzilla;
use Bugzilla::Constants;
-use Bugzilla::User;
use Bugzilla::Group;
require "globals.pl";
@@ -40,11 +39,11 @@ my $dbh = Bugzilla->dbh;
use vars qw($template $vars);
-Bugzilla->login(LOGIN_REQUIRED);
+my $user = Bugzilla->login(LOGIN_REQUIRED);
print $cgi->header();
-UserInGroup("creategroups")
+$user->in_group('creategroups')
|| ThrowUserError("auth_failure", {group => "creategroups",
action => "edit",
object => "groups"});