From f20083694a8c2e6e1287b01ae63289d25244b043 Mon Sep 17 00:00:00 2001 From: Vincent Auger Date: Wed, 6 Nov 2024 13:42:58 -0400 Subject: [PATCH] refactor: update user permissions in UserPolicy and remove unused Filament config --- app/Policies/UserPolicy.php | 4 ++-- config/filament.php | 14 -------------- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 config/filament.php diff --git a/app/Policies/UserPolicy.php b/app/Policies/UserPolicy.php index 1b6dc4e8..d8724256 100644 --- a/app/Policies/UserPolicy.php +++ b/app/Policies/UserPolicy.php @@ -16,7 +16,7 @@ class UserPolicy */ public function viewAny(User $user) { - return $user->can('view_any_user'); + return $user->can('view_any_users'); } /** @@ -49,7 +49,7 @@ public function create(User $user) public function update(User $user, User $model) { - if ($user->can('administer_user')) { + if ($user->can('administer_users')) { return true; } diff --git a/config/filament.php b/config/filament.php deleted file mode 100644 index a2e733fd..00000000 --- a/config/filament.php +++ /dev/null @@ -1,14 +0,0 @@ - [ - - /* - * Set rate limiting for login attempts - */ - 'max_attempts' => 5, - 'decay_seconds' => 600, - ], - -];