Merge pull request #19402 from owncloud/public-recognizeauthsession

Allow public webdav auth to recognize sesssion
This commit is contained in:
Thomas Müller 2015-09-28 12:53:33 +02:00
commit d007c32907
1 changed files with 4 additions and 1 deletions

View File

@ -82,10 +82,13 @@ class PublicAuth extends \Sabre\DAV\Auth\Backend\AbstractBasic {
}
return true;
} else if (\OC::$server->getSession()->exists('public_link_authenticated')
&& \OC::$server->getSession()->get('public_link_authenticated') === $linkItem['id']) {
return true;
} else {
return false;
}
} elseif ($linkItem['share_type'] == \OCP\Share::SHARE_TYPE_REMOTE) {
} else if ($linkItem['share_type'] == \OCP\Share::SHARE_TYPE_REMOTE) {
return true;
} else {
return false;