kang
395e1c7400
feat: refactor super admin to use is_super_admin flag and enhance site deletion logic
...
- Changed super admin detection from role-based to `is_super_admin` flag in AdminUser model
- Added `requireDefaultAdminSiteId()` method to throw validation error when no integration site exists
- Enhanced site deletion to migrate platform role bindings to fallback site and auto-delete site-specific admin accounts
- Made agent line code optional with auto-generation fallback using `{site_code}-agent-{counter}` format
2026-06-12 20:47:40 +08:00
..
2026-06-08 17:41:41 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-11 18:01:58 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 10:29:43 +08:00
2026-06-10 14:42:23 +08:00
2026-06-11 18:01:58 +08:00
2026-06-12 20:47:40 +08:00
2026-06-12 15:59:05 +08:00
2026-06-12 15:59:05 +08:00
2026-06-12 20:47:40 +08:00
2026-06-10 10:29:43 +08:00