added support for inviting list collaborators

This commit is contained in:
Edward Tirado Jr 2026-04-03 00:39:37 -05:00
parent cd2c8adaa8
commit 0787b75780
21 changed files with 393 additions and 34 deletions

View file

@ -22,7 +22,7 @@ class MovieListPolicy
public function view(User $user, MovieList $movieList): bool
{
if ($movieList->owner === $user->getKey() || $movieList->isPublic) {
if ($movieList->owner === $user->getKey() || $movieList->isPublic || $user->sharedLists->contains($movieList)) {
return true;
}