diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-07 16:12:40 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-07 16:15:01 +0100 |
commit | b1dae2a4b9a8b5a4f0d39bf968b750b183b41e7e (patch) | |
tree | d793e74bf58bb14940a68a53bd51b031388770e6 /apps/files_sharing | |
parent | 218d04214289784c56037b6756bb64c436c94172 (diff) | |
download | nextcloud-server-b1dae2a4b9a8b5a4f0d39bf968b750b183b41e7e.tar.gz nextcloud-server-b1dae2a4b9a8b5a4f0d39bf968b750b183b41e7e.zip |
Can't convert node to string
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/api/share20ocs.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_sharing/api/share20ocs.php b/apps/files_sharing/api/share20ocs.php index ef7b79669e3..0c9e5473d9c 100644 --- a/apps/files_sharing/api/share20ocs.php +++ b/apps/files_sharing/api/share20ocs.php @@ -33,6 +33,11 @@ use OCP\Share\IManager; use OCP\Share\Exceptions\ShareNotFound; use OCP\Share\Exceptions\GenericShareException; +/** + * Class Share20OCS + * + * @package OCA\Files_Sharing\API + */ class Share20OCS { /** @var IManager */ @@ -321,7 +326,7 @@ class Share20OCS { } else if ($shareType === \OCP\Share::SHARE_TYPE_REMOTE) { 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); |