Skip to content

Commit

Permalink
wip on admin projects
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 13, 2023
1 parent 0a9c437 commit 2afa306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Policies/ProjectPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2afa306

Please sign in to comment.