mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Since we must ask for a password this can't be a default public link
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
e356acbcee
commit
099d25a56c
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue