refactor(policies): remove Response type hint from update methods in ApplicationPreviewPolicy and DatabasePolicy for improved flexibility
This commit is contained in:
parent
459b2553bf
commit
a8d565836a
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ public function create(User $user): bool
|
|||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, ApplicationPreview $applicationPreview): Response
|
||||
public function update(User $user, ApplicationPreview $applicationPreview)
|
||||
{
|
||||
// if ($user->isAdmin()) {
|
||||
// return Response::allow();
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public function create(User $user): bool
|
|||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, $database): Response
|
||||
public function update(User $user, $database)
|
||||
{
|
||||
// if ($user->isAdmin() && $user->teams->contains('id', $database->team()->first()->id)) {
|
||||
// return Response::allow();
|
||||
|
|
|
|||
Loading…
Reference in a new issue