diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-11-23 17:04:22 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-11-23 17:04:22 +0100 |
commit | 48ea9e1c23b6cd869ef720541cca25a046176e2f (patch) | |
tree | 1ba7091691117461f5413456dab11dc769934830 /apps/dav | |
parent | 5f6997f6fe0955e650625a769195e1e896a9f04e (diff) | |
download | nextcloud-server-48ea9e1c23b6cd869ef720541cca25a046176e2f.tar.gz nextcloud-server-48ea9e1c23b6cd869ef720541cca25a046176e2f.zip |
Use public IAppManager instead of OC_App
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Directory.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php index bffe99449cb..f4b1ee62190 100644 --- a/apps/dav/lib/Connector/Sabre/Directory.php +++ b/apps/dav/lib/Connector/Sabre/Directory.php @@ -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'); |