mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Add sharePublicLinkAskOptionalPassword to Capabilities
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
d6f53d66f4
commit
e356acbcee
2 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,11 @@ bool Capabilities::sharePublicLinkSupportsUploadOnly() const
|
|||
return _capabilities["files_sharing"].toMap()["public"].toMap()["supports_upload_only"].toBool();
|
||||
}
|
||||
|
||||
bool Capabilities::sharePublicLinkAskOptionalPassword() const
|
||||
{
|
||||
return _capabilities["files_sharing"].toMap()["public"].toMap()["password"].toMap()["askForOptionalPassword"].toBool();
|
||||
}
|
||||
|
||||
bool Capabilities::sharePublicLinkEnforcePassword() const
|
||||
{
|
||||
return _capabilities["files_sharing"].toMap()["public"].toMap()["password"].toMap()["enforced"].toBool();
|
||||
|
|
|
@ -40,6 +40,7 @@ public:
|
|||
bool sharePublicLink() const;
|
||||
bool sharePublicLinkAllowUpload() const;
|
||||
bool sharePublicLinkSupportsUploadOnly() const;
|
||||
bool sharePublicLinkAskOptionalPassword() const;
|
||||
bool sharePublicLinkEnforcePassword() const;
|
||||
bool sharePublicLinkEnforceExpireDate() const;
|
||||
int sharePublicLinkExpireDateDays() const;
|
||||
|
|
Loading…
Reference in a new issue