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

fix: prevent pages using an invalid template #7

Open
Regaez opened this issue Aug 4, 2019 · 0 comments
Open

fix: prevent pages using an invalid template #7

Regaez opened this issue Aug 4, 2019 · 0 comments
Labels

Comments

@Regaez
Copy link
Owner

Regaez commented Aug 4, 2019

At the moment, you can make a PATCH or POST request and set a page to use a non-existent page template. This would cause a twig rendering error and break the page.

We should validate that the template can be used (based on the currently active theme?) when attempting to change this, and throw a 400 Bad Request if the new template is invalid.

@Regaez Regaez changed the title Prevent pages using an invalid template fix: prevent pages using an invalid template Aug 7, 2019
@Regaez Regaez added the bug label Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant