Check if files_sharing is actually enabled before using it
This commit is contained in:
parent
a05ccd969c
commit
29dd7d83c4
|
@ -104,6 +104,7 @@ API::register(
|
||||||
);
|
);
|
||||||
|
|
||||||
// Server-to-Server Sharing
|
// Server-to-Server Sharing
|
||||||
|
if (\OC::$server->getAppManager()->isEnabledForUser('files_sharing')) {
|
||||||
$s2s = new \OCA\Files_Sharing\API\Server2Server();
|
$s2s = new \OCA\Files_Sharing\API\Server2Server();
|
||||||
API::register('post',
|
API::register('post',
|
||||||
'/cloud/shares',
|
'/cloud/shares',
|
||||||
|
@ -132,3 +133,4 @@ API::register('post',
|
||||||
'files_sharing',
|
'files_sharing',
|
||||||
API::GUEST_AUTH
|
API::GUEST_AUTH
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue