Skip to content

Commit

Permalink
fix settings page permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 committed Sep 6, 2024
1 parent 08abba4 commit d709509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Filament/Pages/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function canAccess(): bool
/** @var User $user */
$user = auth()->user();

return $user->can('view Settings');
return $user->can('view settings');
}

protected function getFormSchema(): array
Expand All @@ -68,7 +68,7 @@ protected function getFormSchema(): array
/** @var User $user */
$user = auth()->user();

return !$user->can('update Settings');
return !$user->can('update settings');
})
->tabs([
Tab::make('general')
Expand Down

0 comments on commit d709509

Please sign in to comment.