diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-12-11 12:37:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 12:37:54 +0100 |
commit | 97deaf85b9d18cabfc345025ef273da24006c6de (patch) | |
tree | fbef8a1bc9026f9c7e967f7e6f87db630c6437b6 /lib/private/Share20 | |
parent | c71e9de5ff3fe88d0798b70b5bde5caa03e51c3a (diff) | |
parent | 0f32f8119e1d27548732bb1468376959779c39cf (diff) | |
download | nextcloud-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.php | 5 |
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; |