added support for inviting list collaborators
This commit is contained in:
parent
cd2c8adaa8
commit
0787b75780
21 changed files with 393 additions and 34 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue