Fix RBAC role system bugs and improve UX #446

Merged
ZacharyZcR merged 7 commits from fix/rbac-improvements into dev-1.10.0 2025-12-20 02:13:36 +00:00

7 Commits

Author SHA1 Message Date
Luke Gustafson
43d86d43aa Merge branch 'dev-1.10.0' into fix/rbac-improvements 2025-12-19 20:13:25 -06:00
LukeGus
3a0dbacfe1 feat: Improve rbac UI and fixes some bugs 2025-12-17 02:15:27 -06:00
Luke Gustafson
418fe67259 Merge branch 'dev-1.10.0' into fix/rbac-improvements 2025-12-16 22:21:24 -06:00
ZacharyZcR
67cc3adcc4 fix: Prevent credential sharing errors for shared hosts
- Skip credential resolution for shared hosts with credential authentication
  to prevent decryption errors (credentials are encrypted per-user)
- Add warning alert in sharing tab when host uses credential authentication
- Inform users that shared users cannot connect to credential-based hosts
- Add translations for credential sharing warning (EN/ZH)

This prevents authentication failures when sharing hosts configured
with credential authentication while maintaining security by keeping
credentials isolated per user.
2025-12-15 03:44:25 +08:00
ZacharyZcR
dd56108e8a Add empty state message for role assignment
- Display helpful message when no custom roles available
- Clarify that system roles are auto-assigned
- Add noCustomRolesToAssign translation in English and Chinese
2025-12-15 03:34:35 +08:00
ZacharyZcR
f4f1440991 Enhance RBAC system with UI improvements and security fixes
- Move role assignment to Users tab with per-user role management
- Protect system roles (admin/user) from editing and manual assignment
- Simplify permission system: remove Use level, keep View and Manage
- Hide Update button and Sharing tab for view-only/shared hosts
- Prevent users from sharing hosts with themselves
- Unify table and modal styling across admin panels
- Auto-assign system roles on user registration
- Add permission metadata to host interface
2025-12-15 03:19:33 +08:00
ZacharyZcR
5052d9cde9 Fix RBAC role system bugs and improve UX
- Fix user list dropdown selection in host sharing
- Fix role sharing permissions to include role-based access
- Fix translation template interpolation for success messages
- Standardize system roles to admin and user only
- Auto-assign user role to new registrations
- Remove blocking confirmation dialogs in modal contexts
- Add missing i18n keys for common actions
- Fix button type to prevent unintended form submissions
2025-12-13 18:22:46 +08:00