Details
-
Bug
-
Resolution: Fixed
-
Critical
-
3.0.0-beta6
Description
It's not possible to login user that does not have access to read children of root when there are Sites created in Site Factory.
Setup:
- Basic site factory configuration (you can use the one present in behat APP_ENV)
- "Subtree editor" user, you can create it by running:
export APP_ENV=behat
export APP_DEBUG=1
bin/behat --profile=setup --suite=personas
(clear cache if needed)
Steps to reproduce:
- Login as admin
- Go to Site -> Site Factory
- Create a new Site
- Logout
- Login as "SubtreeEditor" (password: Passw0rd-42)
Expected:
I can login without issues
Actual:
Exception:
An exception has been thrown during the rendering of a template ("The User does not have the 'read' 'content' permission with: locationId '64'").
64 is the locationId of Folder for created site and user indeed does not have permissions to read it, but that should not stop him from logging in.