ulysses/static
Merajul Arefin 8fe98cf471
feat(auth): add per-user admin promote/demote toggle (#3078)
* feat(auth): add per-user admin promote/demote toggle

Admin-only API and Users-tab control to grant/revoke admin rights; refuses to demote the last admin.

* fix(auth): restore pre-admin privilege restrictions on demotion

Promoting now stashes the user's privilege map (privileges_before_admin)
and demoting restores it instead of resetting to defaults, so a
promote/demote round trip can no longer broaden a restricted user's
access. Users without a stash (created as admin, or promoted before this
fix) still demote to DEFAULT_PRIVILEGES so a born-admin's stored all-True
map — including can_use_bash — can't survive demotion.

---------

Co-authored-by: K M Merajul Arefin <merajul.arefin@therapservices.net>
2026-06-15 10:44:27 +00:00
..
fonts Odysseus v1.0 2026-05-31 23:58:26 +09:00
icons pwa missing icons added (#428) 2026-06-15 16:00:13 +09:00
js feat(auth): add per-user admin promote/demote toggle (#3078) 2026-06-15 10:44:27 +00:00
lib Odysseus v1.0 2026-05-31 23:58:26 +09:00
app.js fix(ui): Prevent Enter key from triggering submission on mobile devices (#3970) 2026-06-15 15:34:24 +09:00
index.html feat(ui): add real-time diagnostic logs console (#974) 2026-06-15 10:32:51 +02:00
login.html pwa missing icons added (#428) 2026-06-15 16:00:13 +09:00
manifest.json pwa missing icons added (#428) 2026-06-15 16:00:13 +09:00
style.css feat(ui): add real-time diagnostic logs console (#974) 2026-06-15 10:32:51 +02:00
sw.js fix(ui): modal drag + removed startDrag func (#2430) 2026-06-04 20:34:18 +02:00