From 73d99a0432e5b02fee72c6a3d22cc9836196035e Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Tue, 1 Aug 2023 22:07:47 +0600 Subject: [PATCH] Fixed typo deleting RolePolicy: Role to role. --- app/Policies/RolePolicy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Policies/RolePolicy.php b/app/Policies/RolePolicy.php index 2b3f208..f329474 100644 --- a/app/Policies/RolePolicy.php +++ b/app/Policies/RolePolicy.php @@ -29,6 +29,6 @@ final readonly class RolePolicy extends Policy public function delete(User $user, Role $role): bool { - return $user->hasPermission('Role.delete'); + return $user->hasPermission('role.delete'); } }