diff --git a/app/Policies/ProjectPolicy.php b/app/Policies/ProjectPolicy.php index 192a0255..0daf1244 100644 --- a/app/Policies/ProjectPolicy.php +++ b/app/Policies/ProjectPolicy.php @@ -16,10 +16,10 @@ public function viewAny(User $user): bool public function view(User $user, Project $project): bool { - if ($user->isSuperAdmin()) - { + if ($user->isSuperAdmin()) { return true; } + return $user->belongsToOrganization($project->organization); }