Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
POST /admin/lift lifts a live mute or ban for the owner or a moderator, same-origin, and logs who did it - route and test only #356
Sign in to join this conversation.
Split from #221, which was parked after its preview deploy failed (pull #320). This is the server half only: no page markup changes.
Done:
Software/so101/src/admin-routes.tsanswersPOST /admin/liftwith a form bodykind=mute|banandid=<user id>. It checks the same origin and the session (owner, or a moderator who may not lift a mute or ban on the owner or another moderator, the same rule as/live), lifts it through the existingChat.unmuteor accounts unban, and recordsunmuted <name>orunbanned <name>in the admin log with who did it. Then it redirects 303 to/admin.kindoridis a 400, and lifting something that is not in force is a 404.kindis 400.admin-routes.tsand its test change. forge.json is untouched, andbun --cwd Software/so101 testpasses.