-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF49, 11.x, 2021.4
-
Component/s: Core
-
Release Notes Summary:Permissions on parent are checked before purging the trash.
-
Tags:
-
Backlog priority:750
-
Sprint:nxplatform #36
-
Story Points:5
The 'Empty Trash' button triggers the EmptyTrash operation which triggers the purgeDocumentsUnder method of the AbstractTrashService. The method takes the document from which children are being removed. The method checks to see if the caller has access – but it checks it on the parent of the document, not the document itself.
The check should be on the document, not the parent, i.e.
if (!session.hasPermission(parent.getRef(), SecurityConstants.REMOVE_CHILDREN)) { return; }
- is required by
-
NXP-29722 Fix EmptyTrash operation not deleting documents for users granted with the Everything permission
- Resolved
- Is referenced in