cleaned up movie list policy

This commit is contained in:
Edward Tirado Jr 2026-04-18 00:48:03 -05:00
parent 6cfcbc2d10
commit 30f0582214
5 changed files with 61 additions and 33 deletions

View file

@ -27,7 +27,7 @@ class MovieList extends Model
return $this->belongsToMany(Movie::class);
}
public function getUserRole($userId): string
public function getUserRole($userId): ?string
{
$roleId = $this->collaborators()
->where('user_id', $userId)