diff options
author | Christian Kamm <mail@ckamm.de> | 2017-06-15 16:38:22 +0300 |
---|---|---|
committer | ckamm <mail@ckamm.de> | 2017-07-07 12:23:32 +0300 |
commit | e54be1c4ee878dd4c318d70430cfba4907003e84 (patch) | |
tree | 92273f3de192dc635b7fa97eead34d45b6219c19 /src/libsync/capabilities.cpp | |
parent | 411621bf0381f1d41876b8b4aef944a5f9f28be8 (diff) |
Link shares: Add "show file listing" option #5837
Diffstat (limited to 'src/libsync/capabilities.cpp')
-rw-r--r-- | src/libsync/capabilities.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsync/capabilities.cpp b/src/libsync/capabilities.cpp index 651b1981d..4722c0b99 100644 --- a/src/libsync/capabilities.cpp +++ b/src/libsync/capabilities.cpp @@ -51,6 +51,11 @@ bool Capabilities::sharePublicLinkAllowUpload() const return _capabilities["files_sharing"].toMap()["public"].toMap()["upload"].toBool(); } +bool Capabilities::sharePublicLinkSupportsUploadOnly() const +{ + return _capabilities["files_sharing"].toMap()["public"].toMap()["supports_upload_only"].toBool(); +} + bool Capabilities::sharePublicLinkEnforcePassword() const { return _capabilities["files_sharing"].toMap()["public"].toMap()["password"].toMap()["enforced"].toBool(); |