Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Only get relationship createables if can create #10870

Merged

Conversation

ryanmitchell
Copy link
Contributor

This PR ensures a relationship's getCreatables is only called if it's possible to create items. This ensures that any policies and gate checks for creation are not called unnecessarily.

This might make a dent in #7132

@jasonvarga jasonvarga merged commit 42cc99f into statamic:5.x Oct 1, 2024
17 checks passed
@ryanmitchell ryanmitchell deleted the fix/only-get-createables-if-can-create branch October 1, 2024 15:11
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.

2 participants