Skip to content
Merged
Next Next commit
Set proper share type when converting link shares to federated shares
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed May 26, 2020
commit 703fca8ec6290a9b8404b6105ba2b4c525d3ee5f
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
use OCP\IUserSession;
use OCP\Share\IManager;
use OCP\Util;
use OCP\Share\IShare;

/**
* Class MountPublicLinkController
Expand Down Expand Up @@ -161,6 +162,7 @@ public function createFederatedShare($shareWith, $token, $password = '') {
}

$share->setSharedWith($shareWith);
$share->setShareType(IShare::TYPE_REMOTE);

try {
$this->federatedShareProvider->create($share);
Expand Down