aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
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/dav
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/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/File.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php
index ebcfdabc6b3..94632b265db 100644
--- a/apps/dav/lib/Connector/Sabre/File.php
+++ b/apps/dav/lib/Connector/Sabre/File.php
@@ -553,7 +553,7 @@ class File extends Node implements IFile {
* @return array|bool
*/
public function getDirectDownload() {
- if (\OCP\App::isEnabled('encryption')) {
+ if (\OCP\Server::get(\OCP\App\IAppManager::class)->isEnabledForUser('encryption')) {
return [];
}
/** @var \OCP\Files\Storage $storage */