mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
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:
parent
eb5969561b
commit
482d4d5ab0
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue