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 /editparams.cgi | |
parent | b0fbfe878dd8194fbfb7c783e3e5498c50a2f8d9 (diff) | |
download | bugs-0e9fdfdcb1b423f9d26747d779bf3d368b92ced1.tar bugs-0e9fdfdcb1b423f9d26747d779bf3d368b92ced1.tar.gz bugs-0e9fdfdcb1b423f9d26747d779bf3d368b92ced1.tar.bz2 bugs-0e9fdfdcb1b423f9d26747d779bf3d368b92ced1.tar.xz bugs-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 'editparams.cgi')
-rwxr-xr-x | editparams.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editparams.cgi b/editparams.cgi index 264e991a4..8924a0edc 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -27,17 +27,16 @@ use lib "."; use Bugzilla::Constants; use Bugzilla::Config qw(:DEFAULT :admin); -use Bugzilla::User; require "globals.pl"; -Bugzilla->login(LOGIN_REQUIRED); +my $user = Bugzilla->login(LOGIN_REQUIRED); my $template = Bugzilla->template; print Bugzilla->cgi->header(); -UserInGroup("tweakparams") +$user->in_group('tweakparams') || ThrowUserError("auth_failure", {group => "tweakparams", action => "modify", object => "parameters"}); |