diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-08 17:05:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 17:05:11 +0200 |
commit | f8b13ecd604451eb853bf1d7d1f12aadc857e527 (patch) | |
tree | 2ec4ae37cc98bbef9b1c6e52fe05dd0aab0706c9 /apps/federatedfilesharing | |
parent | fe2f8b5d189cbcda8c4f197197169a6e015d6622 (diff) | |
parent | 458c2fa2971e6595a18a289b0afeb4a79ea0e0d3 (diff) | |
download | nextcloud-server-f8b13ecd604451eb853bf1d7d1f12aadc857e527.tar.gz nextcloud-server-f8b13ecd604451eb853bf1d7d1f12aadc857e527.zip |
Merge pull request #32363 from nextcloud/cleanup/remove-long-deprecated-classes
Remove OCP\App and OCP\BackgroundJob
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/Controller/RequestHandlerController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php index fe0c7a11ab7..c5e1a8b4e7e 100644 --- a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php +++ b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php @@ -35,6 +35,7 @@ use OCP\AppFramework\OCS\OCSBadRequestException; use OCP\AppFramework\OCS\OCSException; use OCP\AppFramework\OCS\OCSForbiddenException; use OCP\AppFramework\OCSController; +use OCP\App\IAppManager; use OCP\Constants; use OCP\EventDispatcher\IEventDispatcher; use OCP\Federation\Exceptions\ProviderCouldNotAddShareException; @@ -366,7 +367,7 @@ class RequestHandlerController extends OCSController { * @return bool */ private function isS2SEnabled($incoming = false) { - $result = \OCP\App::isEnabled('files_sharing'); + $result = \OCP\Server::get(IAppManager::class)->isEnabledForUser('files_sharing'); if ($incoming) { $result = $result && $this->federatedShareProvider->isIncomingServer2serverShareEnabled(); |