mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-11 13:49:03 +00:00
294f006cd0
The 'Add User' modal in an organization showed Owner / Admin / Operator / User
while the server-level 'Add User' modal showed Viewer / Operator / Administrator
/ Global Admin / Server Admin / Super Admin / Pro. Same conceptual roles had
inconsistent labels (Admin vs Administrator) and the lowest tier used different
words (User vs Viewer), making the two modals look unrelated.
Server-only roles (Super Admin, Server Admin, Global Admin, Pro) intentionally
remain absent from the org modal — they are not org-scoped.
Changes:
- web-nodejs/public/js/organizationDetail.js: reorder roleOptions() to
lowest-first ['user','operator','admin','owner'] to match the server modal's
Viewer→Pro ordering pattern.
- web-nodejs/lang/*.json (26 locales): in the 'organizations' section, rename
role_user label to the localized equivalent of 'Viewer' (matching the
server section's role_viewer) and role_admin to 'Administrator' (matching
server section's role_admin). Backend enum values ('user', 'admin') are
unchanged — this is a pure label change, no schema migration required.
Reported-by: @SterlynKong