Skip to content

Commit

Permalink
Use config helper for debug policies (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjustesen authored Nov 2, 2022
1 parent 47eaca2 commit ce1e2da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Policies/FailedJobPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class FailedJobPolicy

public function viewAny(User $user): bool
{
return env('APP_DEBUG');
return config('app.debug');
}
}
2 changes: 1 addition & 1 deletion app/Providers/FilamentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function register()
public function boot()
{
Logs::can(function (User $user) {
return env('APP_DEBUG');
return config('app.debug');
});

Filament::serving(function () {
Expand Down

0 comments on commit ce1e2da

Please sign in to comment.