瀏覽代碼

Can't convert node to string

tags/v9.1.0beta1
Roeland Jago Douma 8 年之前
父節點
當前提交
b1dae2a4b9
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      apps/files_sharing/api/share20ocs.php

+ 6
- 1
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);

Loading…
取消
儲存