refactor(policies): remove Response type hint from update methods in ApplicationPreviewPolicy and DatabasePolicy for improved flexibility
This commit is contained in:
@@ -37,7 +37,7 @@ class ApplicationPreviewPolicy
|
||||
/**
|
||||
* 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 @@ class DatabasePolicy
|
||||
/**
|
||||
* 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();
|
||||
|
Reference in New Issue
Block a user