From 482d4d5ab06f100a09972057385a94fc9197cd9d Mon Sep 17 00:00:00 2001 From: nfebe Date: Fri, 20 Dec 2024 02:19:11 +0100 Subject: [PATCH] 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 --- apps/files_sharing/src/files_newMenu/newFileRequest.ts | 3 +++ 1 file changed, 3 insertions(+) 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 },