Details
-
Bug
-
Resolution: Unresolved
-
High
-
2.5.5
-
None
Description
Limiting Content/Read permission with (for example) Content Type can break Trash pagination.
Steps to reproduce
1. Clean installation of eZ Platform 2.5
2. Log in to the Back Office as Admin user.
3. Create a new Role Test Role.
4. Add permissions to it as described:
Module | Function | Limitations |
---|---|---|
Content | Read | Content Type: Folder |
Content | Restore | |
User | * | |
Content | Read | Location: /Home |
5. Create a new User Group Test Group. Assign Test Role to User Group.
6. Create a new User Test User in User Group.
7. In /Home create an Article Test Article, publish it, then send it to trash.
8. In /Home create a Folder Test Folder, publish it, then send it to trash.
9. In config.yml add a new parameter {{ ezsettings.default.pagination.trash_limit: 1 }} :
parameters: locale: en ezpublish_rest.csrf_token_intention: authenticate # Enabled token based authentication in PB page_builder.token_authenticator.enabled: true ezsettings.default.pagination.trash_limit: 1
10. Log in into Back Offcie as Test User.
11. View the contents of the Trash.
Result
Trash will be empty.
Expected Result
Trash should show 1 item: Test Folder.
Note: If you change {{ ezsettings.default.pagination.trash_limit}} to 2, Test Folder will be displayed in the Trash.