clone

a self-hosted multitenant nostr relay with sites, file storage, git hosting, and inbox and outbox delivery

fix(auth): distinguish denied members from unauthenticated readers

Dami committed c91c272
Return restricted for authenticated nonmembers while preserving auth-required for anonymous readers. Cover anonymous, outsider and member access in a table-driven regression test.
commit
c91c272509779699fc2738c1bec749807d856f12
parent
f73361630e811be4c3d810e3e25bdb9b5c2e1d67
author
Dami <dami.etoile@gmail.com>
2 files changed, +30 -1
Ainternal/gates/authz_test.go26++++++++++++++++++++++++++
Minternal/gates/gates.go5++++-
A internal/gates/authz_test.go +26 -0
M internal/gates/gates.go +4 -1