Skip to content

move admin access check from component to route loader#57

Open
edandylytics wants to merge 1 commit into
developmentfrom
app/update-admin-route-control
Open

move admin access check from component to route loader#57
edandylytics wants to merge 1 commit into
developmentfrom
app/update-admin-route-control

Conversation

@edandylytics
Copy link
Copy Markdown
Collaborator

This PR addresses EDFIAL-403. It moves the admin check from the component to the router, which is where I'd like the Runway frontend to manage access. Note that users just get redirected -- there's no attempt to message that they're on a page they don't have access to, which I think is fine.

guards /admin at the router via a loader that redirects non-PartnerAdmin
users to /, matching the pattern used elsewhere (e.g. /ods-configs) and
keeping access control out of page components.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@edandylytics edandylytics requested a review from bhaugeea April 28, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant