diff options
author | lpsolit%gmail.com <> | 2005-09-16 07:01:56 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-09-16 07:01:56 +0200 |
commit | 0e9fdfdcb1b423f9d26747d779bf3d368b92ced1 (patch) | |
tree | 4efe75517a68809a853913add2d16b4be08ce931 /editflagtypes.cgi | |
parent | b0fbfe878dd8194fbfb7c783e3e5498c50a2f8d9 (diff) | |
download | bugzilla-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 'editflagtypes.cgi')
-rwxr-xr-x | editflagtypes.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi index ed3743a43..d0c04f5c1 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -37,14 +37,13 @@ use Bugzilla::Constants; use Bugzilla::Flag; use Bugzilla::FlagType; use Bugzilla::Group; -use Bugzilla::User; use Bugzilla::Util; use vars qw( $template $vars ); # Make sure the user is logged in and is an administrator. -Bugzilla->login(LOGIN_REQUIRED); -UserInGroup("editcomponents") +my $user = Bugzilla->login(LOGIN_REQUIRED); +$user->in_group('editcomponents') || ThrowUserError("auth_failure", {group => "editcomponents", action => "edit", object => "flagtypes"}); |