summaryrefslogtreecommitdiffstats
path: root/editversions.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editversions.cgi')
-rwxr-xr-xeditversions.cgi5
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"});