From 2831884e74766fd7e515b51a279bbc311707c376 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 28 Jan 2016 13:17:16 +0100 Subject: Fix OCS unit tests after two share merges * Use getNode * Return IShare object so typechecking is happy --- apps/files_sharing/api/share20ocs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing/api') diff --git a/apps/files_sharing/api/share20ocs.php b/apps/files_sharing/api/share20ocs.php index a3276c5867a..2dadc0888ec 100644 --- a/apps/files_sharing/api/share20ocs.php +++ b/apps/files_sharing/api/share20ocs.php @@ -488,7 +488,7 @@ class Share20OCS { return new \OC_OCS_Result(null, 403, 'public upload disabled by the administrator'); } - if (!($share->getPath() instanceof \OCP\Files\Folder)) { + if (!($share->getNode() instanceof \OCP\Files\Folder)) { return new \OC_OCS_Result(null, 400, "public upload is only possible for public shared folders"); } } -- cgit v1.2.3