owpengram-server/internal/app/users
Astra ea17d7da0d admin: bypass the reserved-username blocklist at write time too
UpdateUsernameAdmin already skipped the reserved-word check in the
availability lookup, but UserStore.UpdateUsername's own write path
(replacePeerUsernameTx / CollectibleUsernameStore.SetEditableUsername)
enforces the same operator blocklist a second time, independently and
unconditionally. That second check is what was still rejecting an admin
handing out a word they'd deliberately reserved, with "username occupied".

Add UpdateUsernameAdmin/SetEditableUsernameAdmin bypass variants down the
write path (postgres and memory) and route users.Service's actual write
through them when the availability check was already bypassed.
2026-09-15 16:22:00 +01:00
..
doc.go Initial open source release 2026-06-04 01:37:39 +08:00
premium_test.go feat: sync monoforum and collectible emoji status 2026-07-19 20:37:10 +08:00
service.go admin: bypass the reserved-username blocklist at write time too 2026-09-15 16:22:00 +01:00
service_sparse.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
service_sparse_test.go merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
service_test.go admin: bypass the reserved-username blocklist at write time too 2026-09-15 16:22:00 +01:00