Skip to content

Commit 30da9c4

Browse files
authored
Merge pull request #57 from alexandru-eftimie/main
Skip plugin when not logged in
2 parents 320c21b + 2c3f514 commit 30da9c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SpotlightPlugin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public function register(Panel $panel): void
3737
public function boot(Panel $panel): void
3838
{
3939
Filament::serving(function () use ($panel) {
40+
if(!Filament::auth()->check()) {
41+
return;
42+
}
4043
config()->set('livewire-ui-spotlight.include_js', false);
4144

4245
if (Filament::hasTenancy()) {

0 commit comments

Comments
 (0)