Files
BetterDesk/web-nodejs/lang
UNITRONIX 294f006cd0 fix(ui,i18n): standardize role labels between server and org user modals (#120)
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
2026-05-01 22:15:23 +02:00
..