summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-11-14 00:55:22 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-12-05 10:33:48 -0100
commitc1558af16da9126ad4da5db001bc5c8c92c8bc51 (patch)
tree890d5f43ca03b2bd8f7c1e07e48241b06388b8be /apps/dav
parent8ccf207e4732e3bd6f68329594dc55eec092b6b1 (diff)
downloadnextcloud-server-c1558af16da9126ad4da5db001bc5c8c92c8bc51.tar.gz
nextcloud-server-c1558af16da9126ad4da5db001bc5c8c92c8bc51.zip
adding share type circles
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/PublicAuth.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/PublicAuth.php b/apps/dav/lib/Connector/PublicAuth.php
index 8d29704c970..6b8341f7047 100644
--- a/apps/dav/lib/Connector/PublicAuth.php
+++ b/apps/dav/lib/Connector/PublicAuth.php
@@ -97,7 +97,10 @@ class PublicAuth extends AbstractBasic {
// check if the share is password protected
if ($share->getPassword() !== null) {
- if ($share->getShareType() === \OCP\Share::SHARE_TYPE_LINK || $share->getShareType() === \OCP\Share::SHARE_TYPE_EMAIL) {
+
+ if ($share->getShareType() === \OCP\Share::SHARE_TYPE_LINK
+ || $share->getShareType() === \OCP\Share::SHARE_TYPE_EMAIL
+ || $share->getShareType() === \OCP\Share::SHARE_TYPE_CIRCLE) {
if ($this->shareManager->checkPassword($share, $password)) {
return true;
} else if ($this->session->exists('public_link_authenticated')