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

[4.x] Use protection scheme from data before using site-wide protection scheme #9607

Merged

Conversation

duncanmcclean
Copy link
Member

This pull request tweaks the Protection@scheme method so it uses the protection scheme from the data (eg. entry, term) before it uses the site-wide default protection scheme.

Right now, if a site-wide protection scheme is configured, Statamic will use that before it checks the data.

Fixes #9552.

@jasonvarga jasonvarga merged commit e088b18 into 4.x Feb 28, 2024
36 checks passed
@jasonvarga jasonvarga deleted the use-explicit-protection-scheme-over-global-protection-scheme branch February 28, 2024 14:58
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.

When default/site-wide protect schema is set, Statamic ignores any protect settings on collections and entries
2 participants