Files
new-api/controller
CaIon 2506e1b980 fix(auth): reject non-standard roles when creating a user
CreateUser accepted any integer role below the operator's own, so an
admin could create a user with role 5 or -1, and a root user's request
for role 99 went on to step-up verification before failing. Only the
guest, common, admin and root roles are accepted now; any other value
fails with an invalid-parameter error before verification and nothing
is written.
2026-09-30 20:52:10 +08:00
..
2025-03-15 19:10:12 +08:00
2026-09-03 11:28:57 +08:00
2026-09-13 15:26:10 +08:00
2026-08-01 23:19:01 +08:00