diff --git a/app/Policies/VaultPolicy.php b/app/Policies/VaultPolicy.php index ef38a54..a295729 100644 --- a/app/Policies/VaultPolicy.php +++ b/app/Policies/VaultPolicy.php @@ -8,14 +8,6 @@ use Illuminate\Auth\Access\Response; class VaultPolicy { - /** - * Determine whether the user can view any models. - */ - public function viewAny(User $user): bool - { - // - } - /** * Determine whether the user can view the model. */ @@ -24,14 +16,6 @@ class VaultPolicy return $user->id === $vault->created_by; } - /** - * Determine whether the user can create models. - */ - public function create(User $user): bool - { - // - } - /** * Determine whether the user can update the model. */ @@ -53,7 +37,7 @@ class VaultPolicy */ public function restore(User $user, Vault $vault): bool { - // + return $user->id === $vault->created_by; } /** @@ -61,6 +45,6 @@ class VaultPolicy */ public function forceDelete(User $user, Vault $vault): bool { - // + return $user->id === $vault->created_by; } }