summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-11 12:37:54 +0100
committerGitHub <noreply@github.com>2019-12-11 12:37:54 +0100
commit97deaf85b9d18cabfc345025ef273da24006c6de (patch)
treefbef8a1bc9026f9c7e967f7e6f87db630c6437b6 /lib/private/Share20
parentc71e9de5ff3fe88d0798b70b5bde5caa03e51c3a (diff)
parent0f32f8119e1d27548732bb1468376959779c39cf (diff)
downloadnextcloud-server-97deaf85b9d18cabfc345025ef273da24006c6de.tar.gz
nextcloud-server-97deaf85b9d18cabfc345025ef273da24006c6de.zip
Merge pull request #17935 from nextcloud/feature/noid/public-auth-for-circles
adding share type circles
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 7864146e402..42db0d8af5d 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -1447,8 +1447,9 @@ class Manager implements IManager {
* @return bool
*/
public function checkPassword(\OCP\Share\IShare $share, $password) {
- $passwordProtected = $share->getShareType() !== \OCP\Share::SHARE_TYPE_LINK
- || $share->getShareType() !== \OCP\Share::SHARE_TYPE_EMAIL;
+ $passwordProtected = $share->getShareType() !== IShare::TYPE_LINK
+ || $share->getShareType() !== IShare::TYPE_EMAIL
+ || $share->getShareType() !== IShare::TYPE_CIRCLE;
if (!$passwordProtected) {
//TODO maybe exception?
return false;