some progress
This commit is contained in:
@@ -16,15 +16,17 @@ class GameListPolicy
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
// check if list is public
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, GameList $list)
|
||||
public function view(User $user, GameList $list): bool
|
||||
{
|
||||
return $user->id === $list->user_id;
|
||||
//return $user->id === $list->user_id;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user