mirror of
https://github.com/brufdev/many-notes.git
synced 2026-01-23 11:29:45 -06:00
Remove unused policies
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user