Skip to content

Commit

Permalink
test: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Sep 14, 2022
1 parent 33686b3 commit 9bab232
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion changelog/unreleased/enhancement-deny-subfolder-share
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Enhancement: Deny subfolders inside share

Subfolders within non-link shares can now be denied for certain share receivers if the backend is capabable of negative ACLs.
Sub-folders within user- and group-shares can now be denied for certain share receivers if the backend is capable of negative ACLs.
Please note that the state of this feature is experimental and needs to be enabled in the backend.

https://github.com/owncloud/web/pull/7190
https://github.com/owncloud/web/issues/7180
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ function getResource({
shareTypes: [],
downloadURL: '',
isReceivedShare: () => isReceivedShare,
canShare: () => true
canShare: () => true,
canDeny: () => false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ function getResource({
isReceivedShare: () => true,
canBeDeleted: () => true,
canRename: () => true,
canShare: () => canShare
canShare: () => canShare,
canDeny: () => false
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/web-client/src/helpers/space/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export function buildSpace(space) {
isReceivedShare: function () {
return false
},
canDeny: () => false,
getDomSelector: () => extractDomSelector(space.id)
}
}

0 comments on commit 9bab232

Please sign in to comment.