diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-28 13:17:16 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-28 13:17:16 +0100 |
commit | 2831884e74766fd7e515b51a279bbc311707c376 (patch) | |
tree | 0e37457038783574f4e3ce9e1c04cabd321b8d38 /apps/files_sharing/api | |
parent | de8852a76072aa36f95da11994b060a233d558df (diff) | |
download | nextcloud-server-2831884e74766fd7e515b51a279bbc311707c376.tar.gz nextcloud-server-2831884e74766fd7e515b51a279bbc311707c376.zip |
Fix OCS unit tests after two share merges
* Use getNode
* Return IShare object so typechecking is happy
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r-- | apps/files_sharing/api/share20ocs.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } |