3 Commits

Author SHA1 Message Date
Frudrax Cheng 5edb25ac4e feat: restrict permission roles 2026-06-06 13:50:56 +08:00
Frudrax Cheng d3ee215f61 Refactor employee management 2026-05-28 10:05:59 +08:00
Frudrax Cheng 3ddd4db126 Add user management for admin (CRUD + role + reset password)
Adds /api/users endpoints (admin only) plus /api/users/assignable
(admin + technician) used by the aftersales reassign picker. Guards
prevent self-demotion, self-deletion, and removing the last admin.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 10:57:53 +08:00