From 4b61aeb6dc5b05eaa12f9fde024d62af2ff2d302 Mon Sep 17 00:00:00 2001 From: brufdev Date: Sun, 2 Feb 2025 17:57:32 +0000 Subject: [PATCH] Remove unused policies --- app/Policies/VaultPolicy.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/Policies/VaultPolicy.php b/app/Policies/VaultPolicy.php index 2a31531..0b691ae 100644 --- a/app/Policies/VaultPolicy.php +++ b/app/Policies/VaultPolicy.php @@ -32,20 +32,4 @@ final readonly class VaultPolicy { return $user->id === $vault->created_by; } - - /** - * Determine whether the user can restore the model. - */ - public function restore(User $user, Vault $vault): bool - { - return $user->id === $vault->created_by; - } - - /** - * Determine whether the user can permanently delete the model. - */ - public function forceDelete(User $user, Vault $vault): bool - { - return $user->id === $vault->created_by; - } }