summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-08 17:05:11 +0200
committerGitHub <noreply@github.com>2022-08-08 17:05:11 +0200
commitf8b13ecd604451eb853bf1d7d1f12aadc857e527 (patch)
tree2ec4ae37cc98bbef9b1c6e52fe05dd0aab0706c9 /apps/federatedfilesharing
parentfe2f8b5d189cbcda8c4f197197169a6e015d6622 (diff)
parent458c2fa2971e6595a18a289b0afeb4a79ea0e0d3 (diff)
downloadnextcloud-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.php3
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();