Skip to content

Commit

Permalink
Take permissions into account for create/upload buttons in share jail
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Aug 3, 2022
1 parent 95b9261 commit 866f024
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog/unreleased/enhancement-ocis-resharing
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ https://github.com/owncloud/web/pull/7317
https://github.com/owncloud/web/issues/7225
https://github.com/owncloud/web/pull/7319
https://github.com/owncloud/web/issues/7223
https://github.com/owncloud/web/pull/7398
https://github.com/owncloud/web/issues/7397
2 changes: 1 addition & 1 deletion packages/web-app-files/src/helpers/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export function buildSharedResource(

resource.extension = extractExtensionFromFile(resource)
resource.isReceivedShare = () => incomingShares
resource.canUpload = () => true
resource.canUpload = () => SharePermissions.create.enabled(share.permissions)
resource.isMounted = () => false
resource.share = buildShare(share, resource, allowSharePermission)
resource.getDomSelector = () => extractDomSelector(share.id)
Expand Down

0 comments on commit 866f024

Please sign in to comment.