mirror of
https://github.com/brufdev/many-notes.git
synced 2026-01-25 20:39:21 -06:00
Complete Vault policy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user