Commit Graph
4 Commits
Author SHA1 Message Date
da847bac78 Fix banUser API call missing enabled parameter (#4742)
The banUser function in ChatModerationService was sending an incomplete
request body to the /api/chat/users/setenabled endpoint. The API requires
both userId and enabled fields, but only userId was being sent.

This caused the endpoint to return a 400 Bad Request with the error:
"must provide userId and enabled state"

Added the missing enabled: false parameter to properly disable the user
when banning.

Co-authored-by: Matt Pruitt <41898282+guitsaru@users.noreply.github.com>
2026-01-14 12:53:07 -08:00
Gabe Kangas 3b25e295e8 Missing visible param not being passed to api request 2025-12-23 15:12:25 -08:00
Gabe Kangas d8fb2d5d79 Pass correct id param. Closes #2756 2023-03-01 17:58:32 -08:00
Gabe Kangas f3a16be0dd Add user detail API + modal. Closes #2002 2022-07-20 22:36:20 -07:00