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

Access check on multiple templates #275

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

chriswthomson
Copy link
Contributor

Prevents templates appearing in the 'Add New' menu that the user role does not have permission to add.

Prevents templates appearing in the 'Add New' menu that the user role does not have permission to add.
…-add-multiple-templates

Access check on multiple templates
@ryancramerdesign
Copy link
Member

@chriswthomson I think this could potentially be a lot of overhead on a larger site, as this particular loop would find all possible parent pages for all templates. It may not matter on a smaller site, but on some larger sites I'm not sure it could scale. It's a good idea though, so I'll have to keep looking at it. Thanks.

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.

None yet

2 participants