Infinite loop on Save or Save&View when trying to save a page created from a template, when the user doesn't have view rights on the template page.
This issue is a regression of
Steps to reproduce:
- With an admin, create a page called Sandbox.SecretPage (terminal in my example, but probably reproduces with non-terminal as well)
- Add some content to it, for example, "Secret content. If you see this it's bad."
- Edit rights on the page, give view rights only to the admin group on the page
Switch to a regular user
- use a creation like URL that uses Sandbox.SecretPage as template:
- the content of Sandbox.SecretPage is not displayed, but you can save an empty page.
- An infinity loop is displayed
The action can be canceled. A page without content will be created.