diff options
author | nfebe <fenn25.fn@gmail.com> | 2024-12-20 02:19:11 +0100 |
---|---|---|
committer | F. E Noel Nfebe <fenn25.fn@gmail.com> | 2024-12-20 12:13:32 +0100 |
commit | 482d4d5ab06f100a09972057385a94fc9197cd9d (patch) | |
tree | 5586cd86fbc449ea95a3a87d79c202360de1d815 | |
parent | eb5969561b3ebbd33ebe1e3360f88ddf64a81c36 (diff) | |
download | nextcloud-server-482d4d5ab06f100a09972057385a94fc9197cd9d.tar.gz nextcloud-server-482d4d5ab06f100a09972057385a94fc9197cd9d.zip |
fix(files_sharing): Hide file request if public uploads disabled
The file request creation would error out on creation if public uploads is disabled
so we should not show the option at all.
Signed-off-by: nfebe <fenn25.fn@gmail.com>
-rw-r--r-- | apps/files_sharing/src/files_newMenu/newFileRequest.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/src/files_newMenu/newFileRequest.ts b/apps/files_sharing/src/files_newMenu/newFileRequest.ts index fb65a82a12f..f7c5cc4057a 100644 --- a/apps/files_sharing/src/files_newMenu/newFileRequest.ts +++ b/apps/files_sharing/src/files_newMenu/newFileRequest.ts @@ -27,6 +27,9 @@ export const entry = { if (isPublicShare()) { return false } + if (!sharingConfig.isPublicUploadEnabled) { + return false + } // We will check for the folder permission on the dialog return sharingConfig.isPublicShareAllowed }, |