|
@@ 495-497 (lines=3) @@
|
| 492 |
|
} |
| 493 |
|
|
| 494 |
|
} else if ($shareType === Share::SHARE_TYPE_REMOTE) { |
| 495 |
|
if (!$this->shareManager->outgoingServer2ServerSharesAllowed()) { |
| 496 |
|
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not allow shares from type %s', [$path->getPath(), $shareType])); |
| 497 |
|
} |
| 498 |
|
|
| 499 |
|
$share->setSharedWith($shareWith); |
| 500 |
|
$share->setPermissions($permissions); |
|
@@ 502-504 (lines=3) @@
|
| 499 |
|
$share->setSharedWith($shareWith); |
| 500 |
|
$share->setPermissions($permissions); |
| 501 |
|
} else if ($shareType === Share::SHARE_TYPE_REMOTE_GROUP) { |
| 502 |
|
if (!$this->shareManager->outgoingServer2ServerGroupSharesAllowed()) { |
| 503 |
|
throw new OCSForbiddenException($this->l->t('Sharing %s failed because the back end does not allow shares from type %s', [$path->getPath(), $shareType])); |
| 504 |
|
} |
| 505 |
|
|
| 506 |
|
$share->setSharedWith($shareWith); |
| 507 |
|
$share->setPermissions($permissions); |