]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1507851 - Revision panel on show_bug should not appear for logged out users
authordklawren <dklawren@users.noreply.github.com>
Fri, 16 Nov 2018 17:54:51 +0000 (12:54 -0500)
committerGitHub <noreply@github.com>
Fri, 16 Nov 2018 17:54:51 +0000 (12:54 -0500)
extensions/PhabBugz/Extension.pm

index af12985ce174a680d93ca4d5527b1eb5584e097f..b86e618487d6c58049b16415de4f4c5c9e095216 100644 (file)
@@ -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$/;