let the actual federated share provider check if incoming/outgoing shares are enabled for the specific resource type
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
22d9246134
commit
5c8b26248b
|
@ -117,13 +117,6 @@ class RequestHandlerController extends Controller {
|
|||
*/
|
||||
public function addShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $protocol, $shareType, $resourceType) {
|
||||
|
||||
if (!$this->config->incomingRequestsEnabled()) {
|
||||
return new JSONResponse(
|
||||
['message' => 'This server doesn\'t support outgoing federated shares'],
|
||||
Http::STATUS_NOT_IMPLEMENTED
|
||||
);
|
||||
}
|
||||
|
||||
// check if all required parameters are set
|
||||
if ($shareWith === null ||
|
||||
$name === null ||
|
||||
|
@ -212,12 +205,6 @@ class RequestHandlerController extends Controller {
|
|||
* @return JSONResponse
|
||||
*/
|
||||
public function receiveNotification($notificationType, $resourceType, $providerId, array $notification) {
|
||||
if (!$this->config->incomingRequestsEnabled()) {
|
||||
return new JSONResponse(
|
||||
['message' => 'This server doesn\'t support outgoing federated shares'],
|
||||
Http::STATUS_NOT_IMPLEMENTED
|
||||
);
|
||||
}
|
||||
|
||||
// check if all required parameters are set
|
||||
if ($notificationType === null ||
|
||||
|
|
Loading…
Reference in New Issue