From 1b9ed81cb67a419c34b67629038c3a53055b747e Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 13 Mar 2017 17:24:12 -0100 Subject: [PATCH 1/2] switch reshares to true Signed-off-by: Maxence Lange --- apps/dav/lib/Connector/Sabre/SharesPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index 4df8c9f85a..2b640d74fd 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -143,7 +143,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { $shares = $this->shareManager->getSharesInFolder( $this->userId, $node, - false + true ); $shareTypesByFileId = []; From 16e1c21fcc9ce1cd19a22cec915356a82ae33925 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Tue, 14 Mar 2017 14:28:45 -0100 Subject: [PATCH 2/2] fix mock Signed-off-by: Roeland Jago Douma --- apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php index 9d8a66f24b..2b4a886050 100644 --- a/apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php @@ -235,7 +235,7 @@ class SharesPluginTest extends \Test\TestCase { ->with( $this->equalTo('user1'), $this->anything(), - $this->equalTo(false) + $this->equalTo(true) ) ->will($this->returnCallback(function ($userId, $node, $flag) use ($shareTypes, $dummyShares) { return [111 => $dummyShares];