summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-05-04 11:20:20 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2017-05-04 11:20:20 +0200
commitc053a275d77e1bafb37b528135f46022b4706d3c (patch)
tree5eac9a450b5d02b84e8bb974af37a71d6218d8a1 /apps/dav/lib
parentb04102aab364a62c7a7c3f5cbae9fd0d672842f5 (diff)
downloadnextcloud-server-c053a275d77e1bafb37b528135f46022b4706d3c.tar.gz
nextcloud-server-c053a275d77e1bafb37b528135f46022b4706d3c.zip
check password for mail shares as well
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Connector/PublicAuth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/PublicAuth.php b/apps/dav/lib/Connector/PublicAuth.php
index 94fa370a873..5fca8d5c020 100644
--- a/apps/dav/lib/Connector/PublicAuth.php
+++ b/apps/dav/lib/Connector/PublicAuth.php
@@ -96,7 +96,7 @@ class PublicAuth extends AbstractBasic {
// check if the share is password protected
if ($share->getPassword() !== null) {
- if ($share->getShareType() === \OCP\Share::SHARE_TYPE_LINK) {
+ if ($share->getShareType() === \OCP\Share::SHARE_TYPE_LINK || $share->getShareType() === \OCP\Share::SHARE_TYPE_EMAIL) {
if ($this->shareManager->checkPassword($share, $password)) {
return true;
} else if ($this->session->exists('public_link_authenticated')