Details
-
Bug
-
Resolution: Fixed
-
High
-
2.5.5
-
None
-
[3.0] - Sprint 16
Description
There is an unhandled exception thrown when accessing content having relation to another one being a part of restricted section.
Steps to reproduce:
- Create a new "test" user.
- Create a new section and name it "testSection".
- Create a new article "allowed" and assign it to "testSection".
- Create a new article "restricted" without any section assigned.
- Edit "allowed" and add "restricted" article as a relation in the ezrelationlist FieldType.
- Create a new role "testRole" with the following policies and limitations:
Module Function Limitations Content Read Section: testSection Content Reverserelatedlist None Content Create None Content Edit Section: testSection Content Publish Section: testSection Content Manage_locations None User * None
7. Assign "testRole" to "test" user.
8. Login as "test".
9. Try to access "allowed" content.
Result:
You will be presented with an error, see stacktrace.png for further details.
An exception has been thrown during the rendering of a template ("User does not have access to 'read' 'content' with: contentId '56'") in "EzPlatformAdminUiBundle:fieldtypes/preview:content_fields.html.twig".
Note:
The issue is reproducible in dev environment.
Attachments
Issue Links
- is duplicated by
-
EZP-30734 As an editor i see an Exception in case of a node has relation to restricted content
- Closed
-
EZP-31018 Content with relation to different Content that user does not have permission to read will break Backoffice
- Closed
- relates to
-
EZP-30949 Admin UI: Improved delete warning dialogs
- Closed
- links to