You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now fetching the sets from the public endpoint with an admin account will return every set (including private).
This hinders the ability of the admin account to play the game normally as private sets are not relevant for the admin when playing normally.
A solution to this issue would be to introduce a query parameter that allows for specifying the desired visibility:
api/sets?visibility=all => private/public when user is admin api/sets?visibility=private => private when user is admin api/sets?visibility=public / api/sets => display public => doesn't matter is user is admin
default is public
The text was updated successfully, but these errors were encountered:
As of now fetching the sets from the public endpoint with an admin account will return every set (including private).
This hinders the ability of the admin account to play the game normally as private sets are not relevant for the admin when playing normally.
A solution to this issue would be to introduce a query parameter that allows for specifying the desired visibility:
api/sets?visibility=all
=>private/public
when user is adminapi/sets?visibility=private
=>private
when user is adminapi/sets?visibility=public
/api/sets
=> display public => doesn't matter is user is admindefault is public
The text was updated successfully, but these errors were encountered: