Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-11-14 04:55:22 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2019-12-11 14:40:17 +0300
commitb73faad2a1890a9f9154cc8f7dcd18c489c5fd0c (patch)
tree68e6e10228dc3a21227910640b1d0e7d5fcf0160 /lib
parentcdd0e4d3ad072c76604fbd2a1fdcf60a4e99c97c (diff)
adding share type circles
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/Manager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index c8aafd97652..dd983b6c7ba 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -1329,7 +1329,8 @@ class Manager implements IManager {
*/
public function checkPassword(\OCP\Share\IShare $share, $password) {
$passwordProtected = $share->getShareType() !== \OCP\Share::SHARE_TYPE_LINK
- || $share->getShareType() !== \OCP\Share::SHARE_TYPE_EMAIL;
+ || $share->getShareType() !== \OCP\Share::SHARE_TYPE_EMAIL
+ || $share->getShareType() !== \OCP\Share::SHARE_TYPE_CIRCLE;
if (!$passwordProtected) {
//TODO maybe exception?
return false;