Merge pull request #18931 from owncloud/fix-files_sharing-breakage

Check if files_sharing is actually enabled before using it
This commit is contained in:
Lukas Reschke 2015-09-09 16:11:36 +02:00
commit 6b22006f52
1 changed files with 11 additions and 9 deletions

View File

@ -104,6 +104,7 @@ API::register(
);
// Server-to-Server Sharing
if (\OC::$server->getAppManager()->isEnabledForUser('files_sharing')) {
$s2s = new \OCA\Files_Sharing\API\Server2Server();
API::register('post',
'/cloud/shares',
@ -132,3 +133,4 @@ API::register('post',
'files_sharing',
API::GUEST_AUTH
);
}