cleaned up movie list policy
This commit is contained in:
parent
6cfcbc2d10
commit
30f0582214
5 changed files with 61 additions and 33 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue