From 1af3f79aa20ed652df90ca45c6bc1107a270e55c Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 13 Dec 2018 13:31:05 -0500 Subject: [PATCH] Bug 1513982 - Performance issues due to bad actor activity: require login for the dependency graphs --- showdependencygraph.cgi | 2 +- showdependencytree.cgi | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 1a84e004a..3f3e3c174 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -22,7 +22,7 @@ use Bugzilla::Error; use Bugzilla::Bug; use Bugzilla::Status; -Bugzilla->login(); +Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; diff --git a/showdependencytree.cgi b/showdependencytree.cgi index eecbb6de6..37f8f267a 100755 --- a/showdependencytree.cgi +++ b/showdependencytree.cgi @@ -13,12 +13,13 @@ use warnings; use lib qw(. lib local/lib/perl5); use Bugzilla; +use Bugzilla::Constants; use Bugzilla::Error; use Bugzilla::Bug; use List::Util qw(max); -my $user = Bugzilla->login(); +my $user = Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; -- 2.47.3