aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/src/files_newMenu/newFileRequest.ts3
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
},