diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2023-09-11 21:06:23 +0100 |
---|---|---|
committer | fenn-cs <fenn25.fn@gmail.com> | 2023-09-12 20:50:49 +0100 |
commit | 766806c35d6abf4816a2bd57d386dc43520e3f6f (patch) | |
tree | 0c621e3e03e77bc5b46dab811c69907c4841dcb5 /apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue | |
parent | ef996400955db8c631a2a3d995b356edfe0ca4bc (diff) | |
download | nextcloud-server-766806c35d6abf4816a2bd57d386dc43520e3f6f.tar.gz nextcloud-server-766806c35d6abf4816a2bd57d386dc43520e3f6f.zip |
Enfore allowPublicShares admin setting
Use the the modern intial-state library to pass data about
`allowPublicUploads` to the sharing frontend.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue b/apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue index a83ef503048..b89574a2fca 100644 --- a/apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue +++ b/apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue @@ -100,7 +100,7 @@ export default { return options }, supportsFileDrop() { - if (this.isFolder) { + if (this.isFolder && this.config.isPublicUploadEnabled) { const shareType = this.share.type ?? this.share.shareType return [this.SHARE_TYPES.SHARE_TYPE_LINK, this.SHARE_TYPES.SHARE_TYPE_EMAIL].includes(shareType) } |