Skip to content

Commit

Permalink
Merge pull request #39 from CHE1RON/CHE1RON-patch-37
Browse files Browse the repository at this point in the history
Fix error message for non authorised panel users. #37
  • Loading branch information
Daandelange authored Jun 7, 2023
2 parents 4b48dee + 29835c3 commit 74f9527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'areas' => [
'simplestats' => function ($kirby) {

if(!$kirby->user() || !$kirby->user()->hasSimpleStatsPanelAccess()) return null;
if(!$kirby->user() || !$kirby->user()->hasSimpleStatsPanelAccess()) return [];

return [
// label for the menu and the breadcrumb
Expand Down

0 comments on commit 74f9527

Please sign in to comment.