summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-10 09:59:21 +0300
committerPaul Buetow <paul@buetow.org>2026-05-10 09:59:21 +0300
commit1eefc6fc815e5fbd781e8818c61aa024821ce0d3 (patch)
treebfab82e9e7e2d48dd1a3d23dc9eae017ab867975 /cmd
parent0af2b2bc97275b5b6168cb91dabfe30d89bd5d07 (diff)
Move self-deletion guard from handler into AdminService (DeleteUser) to fix SoC violation
- Add ErrCannotDeleteSelf sentinel error in service layer. - Change DeleteUser signature to (ctx, callerID, id) across all layers. - Move self-deletion guard from handleDeleteUser handler into userAdminService.DeleteUser. - Update handleError to map ErrCannotDeleteSelf to 400 BadRequest. - Adjust all affected tests to use the new signature.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions