Skip to content

Commit

Permalink
Merge branch '3.x' of github.com:saade/filament-laravel-log into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
saade committed May 17, 2024
2 parents b6355b9 + d1f61ac commit c223f42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
4 changes: 0 additions & 4 deletions src/FilamentLaravelLogPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ public static function get(): static

public function register(Panel $panel): void
{
if (! $this->isAuthorized()) {
return;
}

$panel
->pages([
$this->viewLog,
Expand Down
5 changes: 5 additions & 0 deletions src/Pages/ViewLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,9 @@ public function getTitle(): string
{
return __('log::filament-laravel-log.page.title');
}

public static function canAccess(): bool
{
return FilamentLaravelLogPlugin::get()->isAuthorized();
}
}

0 comments on commit c223f42

Please sign in to comment.