forked from eatvio/eatvio-infra
added test permission edit show for admin and moderator
This commit is contained in:
@@ -14,6 +14,6 @@ class PlanPolicy
|
||||
|
||||
private function isAuthorPlan(User $user, Plan $plan): bool
|
||||
{
|
||||
return $user->id === $plan->author->first()->id;
|
||||
return $user->id === $plan->author()->first()->id;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user