Skip to content

Commit 9f72b27

Browse files
authored
Hide button if not authenticated
1 parent 2e0b8b4 commit 9f72b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FilamentDeveloperLoginsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static function (): ?string {
7373

7474
/** @var FilamentDeveloperLoginsPlugin $plugin */
7575
$plugin = $panel->getPlugin('filament-developer-logins');
76-
if (! $plugin->getEnabled() || ! $plugin->getSwitchable()) {
76+
if (! $plugin->getEnabled() || ! $plugin->getSwitchable() || ! auth()->check()) {
7777
return null;
7878
}
7979

0 commit comments

Comments
 (0)