diff options
Diffstat (limited to 'backend/api/handler.go')
| -rw-r--r-- | backend/api/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/api/handler.go b/backend/api/handler.go index a3727c9..4514a25 100644 --- a/backend/api/handler.go +++ b/backend/api/handler.go @@ -227,7 +227,7 @@ func (h *Handler) GetGameWatchLatestStates(ctx context.Context, request GetGameW Status: status, } - if int(row.UserID) == user.UserID { + if int(row.UserID) == user.UserID && !user.IsAdmin { return GetGameWatchLatestStates403JSONResponse{ ForbiddenJSONResponse: ForbiddenJSONResponse{ Message: "You are one of the main players of this game", |
