diff options
author | lpsolit%gmail.com <> | 2005-09-16 05:01:56 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-09-16 05:01:56 +0000 |
commit | 0e9fdfdcb1b423f9d26747d779bf3d368b92ced1 (patch) | |
tree | 4efe75517a68809a853913add2d16b4be08ce931 /editversions.cgi | |
parent | Bug 308581: Excluding yourself from a restricted bug generates an error if th... (diff) | |
download | bugzilla-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 'editversions.cgi')
-rwxr-xr-x | editversions.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editversions.cgi b/editversions.cgi index cf2303e5f..66e81b864 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -35,7 +35,6 @@ require "globals.pl"; use Bugzilla::Constants; use Bugzilla::Config qw(:DEFAULT $datadir); -use Bugzilla::User; use Bugzilla::Product; use Bugzilla::Version; @@ -48,11 +47,11 @@ my $dbh = Bugzilla->dbh; # Preliminary checks: # -Bugzilla->login(LOGIN_REQUIRED); +my $user = Bugzilla->login(LOGIN_REQUIRED); print $cgi->header(); -UserInGroup("editcomponents") +$user->in_group('editcomponents') || ThrowUserError("auth_failure", {group => "editcomponents", action => "edit", object => "versions"}); |