[Pkg-owncloud-commits] [owncloud-client] 66/484: Also parse capabilitie for public uploads

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 05471d0acd67aa125c113a621c6b30de094790a5
Author: Roeland Jago Douma <roeland at famdouma.nl>
Date:   Thu Aug 20 13:39:44 2015 +0200

    Also parse capabilitie for public uploads
---
 src/libsync/capabilities.cpp | 5 +++++
 src/libsync/capabilities.h   | 1 +
 2 files changed, 6 insertions(+)

diff --git a/src/libsync/capabilities.cpp b/src/libsync/capabilities.cpp
index e477b9f..2e4ef80 100644
--- a/src/libsync/capabilities.cpp
+++ b/src/libsync/capabilities.cpp
@@ -38,6 +38,11 @@ bool Capabilities::sharePublicLink() const
     return _capabilities["files_sharing"].toMap()["public"].toMap()["enabled"].toBool();
 }
 
+bool Capabilities::sharePublicLinkAllowUpload() const
+{
+    return  _capabilities["files_sharing"].toMap()["public"].toMap()["upload"].toBool();
+}
+
 bool Capabilities::sharePublicLinkEnforcePassword() const
 {
     return _capabilities["files_sharing"].toMap()["public"].toMap()["password"].toMap()["enforced"].toBool();
diff --git a/src/libsync/capabilities.h b/src/libsync/capabilities.h
index 51fb8e7..621ab48 100644
--- a/src/libsync/capabilities.h
+++ b/src/libsync/capabilities.h
@@ -34,6 +34,7 @@ public:
 
     bool shareAPI() const;
     bool sharePublicLink() const;
+    bool sharePublicLinkAllowUpload() const;
     bool sharePublicLinkEnforcePassword() const;
     bool sharePublicLinkEnforceExpireDate() const;
     int  sharePublicLinkExpireDateDays() const;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list