ixg_platform/templates
ixgadmin ef6f217e45 Gate the administration area by role, not by is_staff
RBACMiddleware only guarded non-staff users, so any staff account stepped
past the role routing for /admin/ — an ops or buyer account with the flag
set could reach the admin index, which embeds the model registry, and a
later permission grant would have been inherited. Restrict /admin/ to the
admin role (superuser excepted) and hide the ops Admin link from non-admins.

Also close the second finding: the seed set is_staff only on creation, so
a buyer whose flag had drifted stayed staff on every re-run. Derive it from
the role on the update path too, and align existing rows with a one-off
migration so the flag never disagrees with the role.
2026-09-25 16:47:50 +00:00
..
guides Add User Guides Viewer (Help Centre) - role-gated wiki help pages 2026-08-07 14:19:49 +00:00
ops Gate the administration area by role, not by is_staff 2026-09-25 16:47:50 +00:00
portal Make logout a POST and end the Keycloak session 2026-09-21 12:53:14 +00:00
403.html Run with DEBUG off and add HSTS and CSP headers 2026-09-25 12:37:40 +00:00
404.html Run with DEBUG off and add HSTS and CSP headers 2026-09-25 12:37:40 +00:00
500.html Run with DEBUG off and add HSTS and CSP headers 2026-09-25 12:37:40 +00:00