added test permission edit show for admin and moderator

This commit is contained in:
2024-01-21 18:57:21 +03:00
parent 59aa4d79a1
commit ed65f1bcac
4 changed files with 50 additions and 12 deletions

View File

@@ -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;
}
}