Details
-
Bug
-
Resolution: Fixed
-
Critical
-
3.3.0, 2.5.17, 3.2.5
-
None
Description
If a user has policy Content/Edit with Location limitation and his assignment with Location limitation any his attempt on accessing Content with related content in the trash in admin back office will result in 500 error:
InvalidArgumentException
Argument '$targets' is invalid: Must contain Location objects
Steps to reproduce:
1. Clean installation of Ibexa DXP v3 or eZ Platform 2.5
2. Log in as admin user into the back office
3. Go to Roles -> Editor
4. Remove content/All functions policy
5. Add content/read policy to it. Set Location Limitation to top-level Location (/Ibexa Platform)|
6. Add content/All functions policy
7. Create a new Editor user.
8. Create two articles under /Ibexa Digital Experience Platform where one article is in relation to the second
9. Move to trash article which is related to first
10. Log in to the back office as an Editor user.
11. Go to Article with a related article in the trash
Result:
InvalidArgumentException
Argument '$targets' is invalid: Must contain Location objects
Expected result:
Content is viewed normally.
Attachments
Issue Links
- clones
-
EZP-32308 Content/Edit Policy with Location Limitation breaks the back office
- Closed