diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-10 09:59:21 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-10 09:59:21 +0300 |
| commit | 1eefc6fc815e5fbd781e8818c61aa024821ce0d3 (patch) | |
| tree | bfab82e9e7e2d48dd1a3d23dc9eae017ab867975 /cmd | |
| parent | 0af2b2bc97275b5b6168cb91dabfe30d89bd5d07 (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
