Skip to content

Commit

Permalink
Merge pull request #7398 from /issues/7397
Browse files Browse the repository at this point in the history
Take permissions into account for create/upload buttons in share jail
  • Loading branch information
JammingBen authored Aug 3, 2022
2 parents 95b9261 + 866f024 commit cbd04ea
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 cbd04ea

Please sign in to comment.