Skip to content
Snippets Groups Projects
Commit b1dae2a4 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Can't convert node to string

parent 218d0421
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,11 @@ use OCP\Share\IManager; ...@@ -33,6 +33,11 @@ use OCP\Share\IManager;
use OCP\Share\Exceptions\ShareNotFound; use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\Exceptions\GenericShareException; use OCP\Share\Exceptions\GenericShareException;
/**
* Class Share20OCS
*
* @package OCA\Files_Sharing\API
*/
class Share20OCS { class Share20OCS {
/** @var IManager */ /** @var IManager */
...@@ -321,7 +326,7 @@ class Share20OCS { ...@@ -321,7 +326,7 @@ class Share20OCS {
} else if ($shareType === \OCP\Share::SHARE_TYPE_REMOTE) { } else if ($shareType === \OCP\Share::SHARE_TYPE_REMOTE) {
if (!$this->shareManager->outgoingServer2ServerSharesAllowed()) { if (!$this->shareManager->outgoingServer2ServerSharesAllowed()) {
return new \OC_OCS_Result(null, 403, 'Sharing '.$path.' failed, because the backend does not allow shares from type '.$shareType); return new \OC_OCS_Result(null, 403, 'Sharing '.$path->getPath().' failed, because the backend does not allow shares from type '.$shareType);
} }
$share->setSharedWith($shareWith); $share->setSharedWith($shareWith);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment