ixg_platform/apps
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
..
ai Restrict every data API to ops and admin 2026-09-17 15:53:44 +00:00
batches Restrict the processing-batch API to ops/admin 2026-09-17 14:48:09 +00:00
buyer Add public buyer self-registration 2026-09-21 11:30:29 +00:00
capa Restrict every data API to ops and admin 2026-09-17 15:53:44 +00:00
compliance Enforce the intake allocation limit in the lineage API 2026-09-17 14:48:04 +00:00
core Gate the administration area by role, not by is_staff 2026-09-25 16:47:50 +00:00
documents Restrict every data API to ops and admin 2026-09-17 15:53:44 +00:00
esg Restrict every data API to ops and admin 2026-09-17 15:53:44 +00:00
guides Help centre: portal-scoped guide audiences, and links that resolve 2026-09-16 16:39:07 +00:00
notifications Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
ops Add the product specification screen to the ops portal 2026-09-25 16:35:45 +00:00
qc Restrict every data API to ops and admin 2026-09-17 15:53:44 +00:00
shipments Test the shipment screen, its API rules and the date inputs 2026-09-17 16:03:14 +00:00
subscriptions Initial commit: IXG Platform 2026-07-29 16:48:48 +00:00
users Gate the administration area by role, not by is_staff 2026-09-25 16:47:50 +00:00
__init__.py P99C: compliance automation - CoA auto-generation and EUDR due diligence 2026-08-05 13:58:39 +00:00