|
@@ 462-464 (lines=3) @@
|
| 459 |
|
} |
| 460 |
|
|
| 461 |
|
} else if ($shareType === Share::SHARE_TYPE_REMOTE) { |
| 462 |
|
if (!$this->shareManager->outgoingServer2ServerSharesAllowed()) { |
| 463 |
|
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not allow shares from type %s', [$path->getPath(), $shareType])); |
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
$share->setSharedWith($shareWith); |
| 467 |
|
$share->setPermissions($permissions); |
|
@@ 469-471 (lines=3) @@
|
| 466 |
|
$share->setSharedWith($shareWith); |
| 467 |
|
$share->setPermissions($permissions); |
| 468 |
|
} else if ($shareType === Share::SHARE_TYPE_REMOTE_GROUP) { |
| 469 |
|
if (!$this->shareManager->outgoingServer2ServerGroupSharesAllowed()) { |
| 470 |
|
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not allow shares from type %s', [$path->getPath(), $shareType])); |
| 471 |
|
} |
| 472 |
|
|
| 473 |
|
$share->setSharedWith($shareWith); |
| 474 |
|
$share->setPermissions($permissions); |