summaryrefslogtreecommitdiffstats
path: root/editclassifications.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-08-17 00:45:22 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-08-17 00:45:22 +0200
commite15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 (patch)
tree4a46e8d94f53faf98923ca7509704f5e1fdec541 /editclassifications.cgi
parent7a8598938d6976acb5f6bde6c86be8b65d1df8da (diff)
downloadbugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.gz
bugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.xz
Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi
r=timello a=LpSolit
Diffstat (limited to 'editclassifications.cgi')
-rwxr-xr-xeditclassifications.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/editclassifications.cgi b/editclassifications.cgi
index db9dd7f0a..6eb3cb910 100755
--- a/editclassifications.cgi
+++ b/editclassifications.cgi
@@ -58,11 +58,11 @@ sub LoadTemplate {
# Preliminary checks:
#
-Bugzilla->login(LOGIN_REQUIRED);
+my $user = Bugzilla->login(LOGIN_REQUIRED);
print $cgi->header();
-Bugzilla->user->in_group('editclassifications')
+$user->in_group('editclassifications')
|| ThrowUserError("auth_failure", {group => "editclassifications",
action => "edit",
object => "classifications"});