Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
Anyone who is not the owner or a moderator gets 404 on GET and POST /admin, not 401/403 #137
Sign in to join this conversation.
Part of #12. The owner asked: "Non-admins get 404 on /admin". Main answers 401 to anonymous visitors and 403 to signed-in non-moderators (
Software/so101/src/relay.ts, therenderRefusallines), which tells a stranger the page exists.Done:
/adminanswer 404 with the app's ordinary not-found page for anonymous visitors and for signed-in people who are neither the owner nor a moderator.src/admin-relay.test.tsexpectations for those cases change from 401/403 to 404; say so in the pull. New cases cover an anonymous GET and an anonymous POST.bun --cwd Software/so101 testandbun x tsc --noEmitpass.Waits on the /admin move (#121, #122) so it edits
src/admin-routes.ts, not relay.ts.