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>
This commit is contained in:
nfebe 2024-12-20 02:19:11 +01:00 committed by F. E Noel Nfebe
parent eb5969561b
commit 482d4d5ab0

View file

@ -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
},