Skip to content

Commit

Permalink
[BF] core bundles - need user before checking for permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Feb 23, 2022
1 parent 14e9fa4 commit 66d1a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/statistics/core-bundle.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/** @var Foil\Template\Template $t */
$this->layout( 'layouts/ixpv4' );
$cb = $t->cb;/** @var \IXP\Models\CoreBundle $cb */
$isSuperUser = Auth::getUser()->isSuperUser();
$isSuperUser = Auth::check() && Auth::getUser()->isSuperUser();
?>

<?php $this->section( 'page-header-preamble' ) ?>
Expand Down

0 comments on commit 66d1a60

Please sign in to comment.