From: dklawren Date: Fri, 16 Nov 2018 17:54:51 +0000 (-0500) Subject: Bug 1507851 - Revision panel on show_bug should not appear for logged out users X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b47005bdd36d45daf74bcd8fdbeadaa690f82ea3;p=thirdparty%2Fbugzilla.git Bug 1507851 - Revision panel on show_bug should not appear for logged out users --- diff --git a/extensions/PhabBugz/Extension.pm b/extensions/PhabBugz/Extension.pm index af12985ce..b86e61848 100644 --- a/extensions/PhabBugz/Extension.pm +++ b/extensions/PhabBugz/Extension.pm @@ -23,6 +23,7 @@ sub template_before_process { my $file = $args->{'file'}; my $vars = $args->{'vars'}; + return unless Bugzilla->user->id; return unless Bugzilla->params->{phabricator_enabled}; return unless Bugzilla->params->{phabricator_base_uri}; return unless $file =~ /bug_modal\/(header|edit).html.tmpl$/;