Add the “show unpermitted sections” lightswitch for Entry fields#16991
Add the “show unpermitted sections” lightswitch for Entry fields#16991ThomasDeMarez wants to merge 2 commits intocraftcms:5.xfrom
Conversation
brandonkelly
left a comment
There was a problem hiding this comment.
Thanks for the PR! I like the idea, but I don’t think we should be doing this from BaseRelationField; it should be confined to craft\fields\Entries, similar to how Assets’ fields “Show unpermitted volumes” and “Show unpermitted files” settings are implemented. We also may want to split this up into two settings (like Assets fields) – “Show unpermitted sections” and “Show unpermitted entries”.
|
The reason I implemented this on BaseRelationField is so other plugins, like Solspace’s If you’d still prefer to implement this specifically within |
|
I still think it makes more sense to do it on the child classes, since these settings are dealing with things that are pretty element type-specific. |
|
Updated as requested. |
…tted-sectionsentries-settings “Show unpermitted sections/entries” settings Resolves #16991
|
Thanks! Merged for Craft 5.7 via #17034. |
|
Craft 5.7.0 is out with those new settings. Thanks again! |
Description
As already implemented for the Asset field, this PR would add an extra field "Show unpermitted sections" to the Entry field's config. This way Sections can be hidden for users that do not have permission to view any Entries in specific Sections.
Related issues
#887
Entry Field

Link Field
