Skip to content

Commit

Permalink
Enable Spotlight only for authenticated users
Browse files Browse the repository at this point in the history
  • Loading branch information
pxlrbt committed Mar 30, 2022
1 parent 9e7fbc6 commit d5a0779
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FilamentSpotlightServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function packageConfiguring(Package $package): void

public function registerSpotlight(ServingFilament $event): void
{
if (! auth()->check()) {
return;
}

(new RegisterPages())();
(new RegisterResources())();
(new RegisterUserMenu())();
Expand Down

0 comments on commit d5a0779

Please sign in to comment.