diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-12-12 10:49:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-12 10:49:12 +0100 |
commit | 387d216214ef806eec1192ebc6ceebd7f3e039db (patch) | |
tree | 0700e5b7054d010eda5be23d61bcb752cdc475b2 /apps | |
parent | 903759df4708652074ec1b638e86a6cbd9afc697 (diff) | |
parent | d6a276c57d97106a9ca137c1bfaad23fcae7eccc (diff) | |
download | nextcloud-server-387d216214ef806eec1192ebc6ceebd7f3e039db.tar.gz nextcloud-server-387d216214ef806eec1192ebc6ceebd7f3e039db.zip |
Merge pull request #18355 from nextcloud/backport/17935/stable17
[stable17] adding share type circles
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/Connector/PublicAuth.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/PublicAuth.php b/apps/dav/lib/Connector/PublicAuth.php index 8d29704c970..149ed62bfa0 100644 --- a/apps/dav/lib/Connector/PublicAuth.php +++ b/apps/dav/lib/Connector/PublicAuth.php @@ -34,6 +34,7 @@ use OCP\IRequest; use OCP\ISession; use OCP\Share\Exceptions\ShareNotFound; use OCP\Share\IManager; +use OCP\Share\IShare; use Sabre\DAV\Auth\Backend\AbstractBasic; /** @@ -97,7 +98,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() === IShare::TYPE_LINK + || $share->getShareType() === IShare::TYPE_EMAIL + || $share->getShareType() === IShare::TYPE_CIRCLE) { if ($this->shareManager->checkPassword($share, $password)) { return true; } else if ($this->session->exists('public_link_authenticated') @@ -112,7 +116,7 @@ class PublicAuth extends AbstractBasic { } return false; } - } else if ($share->getShareType() === \OCP\Share::SHARE_TYPE_REMOTE) { + } else if ($share->getShareType() === IShare::TYPE_REMOTE) { return true; } else { return false; |