Skip to content

Implement endpoint which allows moderators to edit other users' profiles#1020

Merged
Toastbrot236 merged 12 commits intoLittleBigRefresh:mainfrom
Toastbrot236:user-edit
Feb 16, 2026
Merged

Implement endpoint which allows moderators to edit other users' profiles#1020
Toastbrot236 merged 12 commits intoLittleBigRefresh:mainfrom
Toastbrot236:user-edit

Conversation

@Toastbrot236
Copy link
Contributor

This PR primarily implements a way for moderators to update users' icons, description, usernames(!!), and for admins to also update users' roles over the API.

This PR also includes a few tests for this, aswell as a few preparations, like finally adding RoleService to TestRefreshGameServer to allow tests to also test minimum role restrictions (very important for this one), and adding a GetUserByIdAndType() method to GameDatabaseContext to reduce even more duplicate code for endpoints specifying a user, at the cost of returning NotFound for invalid user ID types (I doubt this will annoy anyone).

@Toastbrot236 Toastbrot236 merged commit 1e7c0f8 into LittleBigRefresh:main Feb 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant