File tree Expand file tree Collapse file tree
core/services/src/main/java/org/exoplatform/services/attachments/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717package org .exoplatform .services .attachments .utils ;
1818
1919import org .exoplatform .commons .exception .ObjectNotFoundException ;
20+ import org .exoplatform .ecm .utils .permission .PermissionUtil ;
2021import org .exoplatform .services .attachments .model .Attachment ;
2122import org .exoplatform .services .attachments .model .Permission ;
2223import org .exoplatform .services .attachments .rest .model .AttachmentEntity ;
@@ -139,6 +140,7 @@ public static final Attachment fromAttachmentNode(RepositoryService repositorySe
139140 attachment .setPreviewBreadcrumb (previewBreadcrumb );
140141
141142 acl .setCanAccess (true );
143+ acl .setCanEdit (PermissionUtil .canSetProperty (attachmentNode ));
142144 attachment .setAcl (acl );
143145
144146 return attachment ;
You can’t perform that action at this time.
0 commit comments