Complete Vault policy

This commit is contained in:
Bruno
2024-10-03 03:45:06 +01:00
parent 6253083e0e
commit 3570451a84

View File

@@ -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;
}
}