mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Use public IAppManager instead of OC_App
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
5f6997f6fe
commit
48ea9e1c23
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue