3 Commits

Author SHA1 Message Date
fac526637b fix: add id to userrole insert + remove manual created_at (DB has defaults) 2026-07-10 14:01:05 +08:00
fb579cbd2f fix: use sor.R for role lookup + proper datetime format
- Changed raw SQL role query to sor.R('role', {'role': name})
- Fixed timestampstr() → datetime format to avoid data truncation
- Added logined + reseller.operator roles alongside admin
2026-07-10 13:52:14 +08:00
916b501c67 feat: add admin + reset admin password toolbar for sub_distributors
- api/add_sub_distributor_admin.dspy: create org+user+reseller.admin role, show password
- api/reset_sub_distributor_admin_pwd.dspy: reset admin password, show new password
- sub_distributors_list: add toolbar buttons with popup binds
2026-07-10 12:15:31 +08:00