some progress

This commit is contained in:
2025-06-13 23:06:13 +03:00
parent 621398978a
commit 71dd328431
25 changed files with 594 additions and 126 deletions
+4 -2
View File
@@ -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;
}
/**