Since we must ask for a password this can't be a default public link
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 6 Oct 2020 10:45:45 +0000 (12:45 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Wed, 7 Oct 2020 09:43:47 +0000 (09:43 +0000)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/socketapi.cpp

index dbc2806e72a68ce722988ac13dbf116aa4a66007..2632a42a5e8f18cf626e6eae33d02c44b928351a 100644 (file)
@@ -744,6 +744,7 @@ void SocketApi::sendSharingContextMenuOptions(const FileData &fileData, SocketLi
         // Is is possible to create a public link without user choices?
         bool canCreateDefaultPublicLink = publicLinksEnabled
             && !capabilities.sharePublicLinkEnforceExpireDate()
+            && !capabilities.sharePublicLinkAskOptionalPassword()
             && !capabilities.sharePublicLinkEnforcePassword();
 
         if (canCreateDefaultPublicLink) {