diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-10-13 12:15:10 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-04 13:35:10 +0100 |
commit | c778b1bade02ea772f23c75cb8de804d645feac4 (patch) | |
tree | 0cb07a9bc2fc9bd45e2cb9fd878884d6fa451f0d /apps/dav/lib/Files/RootCollection.php | |
parent | 27304e5694fdec3eebf0700f2a82d9d80e928558 (diff) | |
download | nextcloud-server-c778b1bade02ea772f23c75cb8de804d645feac4.tar.gz nextcloud-server-c778b1bade02ea772f23c75cb8de804d645feac4.zip |
Update sabre dav to 3.2 (#26115)
* Update sabre/dav to 3.2.0
* Adjust code to work with sabre/dav 3.2.0 and it's dependencies
* Adding own CalDAV plugin to fix calendar home property
* Test if there is a user logged in when listing files home
* Update sabre version used by integration tests
* Disable unauthenticated DAV access
This is needed to make Sabre 3.2 behave like we did before.
Eventually we should integrate better with the ACL plugin which itself
should implement an auth failure when appropriate.
=====
* Fixed so cherry-pick was succesfull
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/Files/RootCollection.php')
-rw-r--r-- | apps/dav/lib/Files/RootCollection.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Files/RootCollection.php b/apps/dav/lib/Files/RootCollection.php index 57802d19573..345015530e2 100644 --- a/apps/dav/lib/Files/RootCollection.php +++ b/apps/dav/lib/Files/RootCollection.php @@ -40,7 +40,7 @@ class RootCollection extends AbstractPrincipalCollection { function getChildForPrincipal(array $principalInfo) { list(,$name) = URLUtil::splitPath($principalInfo['uri']); $user = \OC::$server->getUserSession()->getUser(); - if ($name !== $user->getUID()) { + if (is_null($user) || $name !== $user->getUID()) { // a user is only allowed to see their own home contents, so in case another collection // is accessed, we return a simple empty collection for now // in the future this could be considered to be used for accessing shared files |