inou/portal
James 86e72b4f28 refactor: simplify RBAC to use accessorID string parameter
Complete refactor from AccessContext struct to simple accessorID string
parameter for RBAC enforcement, as requested. All access control remains
in lib layer - API/Portal just pass accessor + dossier to lib functions.

Changes:
- Added accessorIDFromContext() helper in lib/v2.go
- Updated all checkAccess() calls to extract accessorID from context
- Updated all EntryList() calls (nil → "" for system context)
- Fixed auth.go helper functions to extract accessorID
- Updated categories API to pass accessor through to lib

All RBAC enforcement stays in lib - no API-level access checks.
Empty accessorID bypasses checks (system/internal operations).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-07 17:15:09 -05:00
..
bin Initial commit 2026-02-01 02:43:27 -05:00
lang fix: genome query RBAC - use system context for data access 2026-02-07 16:31:17 -05:00
static fix: genome query RBAC - use system context for data access 2026-02-07 16:31:17 -05:00
templates fix: genome query RBAC - use system context for data access 2026-02-07 16:31:17 -05:00
access_log.go Initial commit 2026-02-01 02:43:27 -05:00
api_client.go Initial commit 2026-02-01 02:43:27 -05:00
api_mobile.go Initial commit 2026-02-01 02:43:27 -05:00
api_proxy.go Initial commit 2026-02-01 02:43:27 -05:00
defense.go Initial commit 2026-02-01 02:43:27 -05:00
dossier_sections.go refactor: simplify RBAC to use accessorID string parameter 2026-02-07 17:15:09 -05:00
genome.go Initial commit 2026-02-01 02:43:27 -05:00
inou-portal Initial commit 2026-02-01 02:43:27 -05:00
main.go refactor: simplify RBAC to use accessorID string parameter 2026-02-07 17:15:09 -05:00
main.go.bak Initial commit 2026-02-01 02:43:27 -05:00
mcp_http.go fix: genome query RBAC - use system context for data access 2026-02-07 16:31:17 -05:00
mcp_tools.go fix: genome query RBAC - use system context for data access 2026-02-07 16:31:17 -05:00
oauth.go Initial commit 2026-02-01 02:43:27 -05:00
portal Initial commit 2026-02-01 02:43:27 -05:00
prompts.go fix: extracted events are root entries, documents are references 2026-02-02 07:22:27 +00:00
upload.go refactor: simplify RBAC to use accessorID string parameter 2026-02-07 17:15:09 -05:00