You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(access-control): let admins manage ownerless #608
FOCA's role controllers return 404 for resources that have no roles yet, even for admins. Resources stored before an app adopted ownership therefore can't be given an owner through the API, which is what trs-filer's migration needs (trs-filer #86).
Proposal
If the resource exists and the caller is an admin, listing and granting roles work, so an admin can assign the first owner. Others keep getting 404. The controllers need a way to know that the resource exists; reuse what the ownership helpers already take from the app, if possible.
Acceptance criteria
Tests: admin lists and grants on an ownerless resource; non-admin gets 404; missing resource gets 404; existing behaviour unchanged for resources with roles; 100% coverage.
Docs: access-control page, section on adopting ownership in an existing app.
Activity