Skip to content

[9.x] Authorize relationship fieldtype data#821

Merged
duncanmcclean merged 1 commit into
9.xfrom
feature/authorize-relationship-fieldtype-data
May 26, 2026
Merged

[9.x] Authorize relationship fieldtype data#821
duncanmcclean merged 1 commit into
9.xfrom
feature/authorize-relationship-fieldtype-data

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

This pull request adds authorization checks to Runway's relationship fieldtypes to align with Statamic CMS PRs statamic/cms#14718 and statamic/cms#14719.

Users without view permission for a resource will now see an empty picker when browsing, and invalid placeholders for existing selections they can't access. This matches the behaviour introduced in Statamic core for entries, terms, users, and other relationship fieldtypes.

This PR also bumps the minimum statamic/cms requirement to ^6.20 to ensure the authorizeItemData method exists in the parent Relationship class.


Related: statamic/cms#14718
Related: statamic/cms#14719

Add authorization checks to Runway's relationship fieldtypes to align
with Statamic CMS PRs #14718 and #14719. Users without view permission
for a resource will now see an empty picker and invalid placeholders
for existing selections they can't access.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@duncanmcclean duncanmcclean force-pushed the feature/authorize-relationship-fieldtype-data branch from 33a96cd to 7095212 Compare May 26, 2026 08:07
@duncanmcclean duncanmcclean merged commit 0a4355e into 9.x May 26, 2026
16 checks passed
@duncanmcclean duncanmcclean deleted the feature/authorize-relationship-fieldtype-data branch May 26, 2026 08:19
@github-actions
Copy link
Copy Markdown

Released as part of v9.4.6.

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