]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use public IAppManager instead of OC_App 34849/head
authorCarl Schwan <carl@carlschwan.eu>
Wed, 23 Nov 2022 16:04:22 +0000 (17:04 +0100)
committerCarl Schwan <carl@carlschwan.eu>
Wed, 23 Nov 2022 16:04:22 +0000 (17:04 +0100)
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
apps/dav/lib/Connector/Sabre/Directory.php

index bffe99449cb661ab5b324c60f83dbc75f4aa4985..f4b1ee62190f35dc4618dfa421e42092fab84be7 100644 (file)
@@ -255,7 +255,7 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
                        if (!$this->info->isReadable()) {
                                // return 403 instead of 404 because a 404 would make
                                // the caller believe that the collection itself does not exist
-                               if (\OC_App::isEnabled('files_accesscontrol')) {
+                               if (\OCP\Server::get(\OCP\App\IAppManager::class)->isInstalled('files_accesscontrol')) {
                                        throw new Forbidden('No read permissions. This might be caused by files_accesscontrol, check your configured rules');
                                } else {
                                        throw new Forbidden('No read permissions');