Skip to content

Impersonation Cleanup#1309

Merged
tabascq merged 2 commits intoPuzzleServer:mainfrom
tabascq:user/tabascq/ImpersonationCleanup
Mar 11, 2026
Merged

Impersonation Cleanup#1309
tabascq merged 2 commits intoPuzzleServer:mainfrom
tabascq:user/tabascq/ImpersonationCleanup

Conversation

@tabascq
Copy link
Copy Markdown
Contributor

@tabascq tabascq commented Mar 1, 2026

- Disallow switching out of co-op mode when impersonating. (Fixes PuzzleServer#1300)
- Review all uses of GetTeamForPlayer and approve/fix most of them. Oustanding cases are in CustomHtmlPageLoader and SyncController, which do not really have any way to access EventRole; we may need to put teamID/password in the queryString for these cases. (partial for PuzzleServer#1299)
CustomHtmlPageLoader never actually used the Team object so I just removed that line of code. The [PlayerCanSeePuzzle] auth check on this controller is sufficient to allow access when impersonating.

SyncController can be handled by putting the teamPassword into the queryString; also updating the FileUploadHelper to provide this queryString by default.
@tabascq
Copy link
Copy Markdown
Contributor Author

tabascq commented Mar 4, 2026

The last two cases are now handled.

@tabascq tabascq merged commit 66f70d5 into PuzzleServer:main Mar 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Force co-op mode in impersonation

2 participants