Skip to content

Commit

Permalink
Add comment how to properly implement trash acls
Browse files Browse the repository at this point in the history
  • Loading branch information
JanAckermann committed Mar 18, 2022
1 parent 40ad838 commit 3d1f094
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/web-app-files/src/helpers/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,19 @@ export function buildDeletedResource(resource) {
canUpload: () => false,
canDownload: () => false,
canBeDeleted: () => {
/** FIXME: once https://github.com/owncloud/ocis/issues/3339 gets implemented,
* we want to add a check if the permission is set.
* We might to be careful and do an early return true if DavProperty.Permissions is not set
* as oc10 does not support it.
**/
return true
},
canBeRestored: function () {
/** FIXME: once https://github.com/owncloud/ocis/issues/3339 gets implemented,
* we want to add a check if the permission is set.
* We might to be careful and do an early return true if DavProperty.Permissions is not set
* as oc10 does not support it.
**/
return true
},
canRename: () => false,
Expand Down

0 comments on commit 3d1f094

Please sign in to comment.