summaryrefslogtreecommitdiffstats
path: root/doeditparams.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'doeditparams.cgi')
-rwxr-xr-xdoeditparams.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/doeditparams.cgi b/doeditparams.cgi
index cfc21e23d..8d69f56bc 100755
--- a/doeditparams.cgi
+++ b/doeditparams.cgi
@@ -28,18 +28,17 @@ use lib qw(.);
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Config qw(:DEFAULT :admin $datadir);
-use Bugzilla::User;
require "globals.pl";
-Bugzilla->login(LOGIN_REQUIRED);
+my $user = Bugzilla->login(LOGIN_REQUIRED);
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
print $cgi->header();
-UserInGroup("tweakparams")
+$user->in_group('tweakparams')
|| ThrowUserError("auth_failure", {group => "tweakparams",
action => "modify",
object => "parameters"});