Skip to content

Commit

Permalink
wrong place wrong time
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Jan 20, 2024
1 parent 051533d commit 64cb18c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/Policies/PhotoPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ public function canSee(?User $user, Photo $photo): bool
return true;
}

// TODO: to be removed once migrated to v5.
if ($photo->is_public) {
return true;
}

return $photo->album !== null && $this->albumPolicy->canAccess($user, $photo->album);
}

Expand Down

0 comments on commit 64cb18c

Please sign in to comment.