diff --git a/changelog/unreleased/enhancement-ocis-resharing b/changelog/unreleased/enhancement-ocis-resharing index 00295d1e0c6..fde557e25dc 100644 --- a/changelog/unreleased/enhancement-ocis-resharing +++ b/changelog/unreleased/enhancement-ocis-resharing @@ -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 diff --git a/packages/web-app-files/src/helpers/resources.ts b/packages/web-app-files/src/helpers/resources.ts index 89e43cfe918..5251a8c43b6 100644 --- a/packages/web-app-files/src/helpers/resources.ts +++ b/packages/web-app-files/src/helpers/resources.ts @@ -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)