aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-02-10 11:25:50 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2025-02-13 10:19:19 +0100
commita3685551f7188e7d2d0c7532b821ec2c3bd40583 (patch)
tree43aa4f911e53a66529152cb2ac44e017f0ef9f31 /apps/files_sharing/lib/Controller
parentcffd2c8d09e9e9198aed4754478c18f4c8b7c201 (diff)
downloadnextcloud-server-a3685551f7188e7d2d0c7532b821ec2c3bd40583.tar.gz
nextcloud-server-a3685551f7188e7d2d0c7532b821ec2c3bd40583.zip
fix: Replace isInstalled calls with isEnabledForAnyone or isEnabledForUser
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index f6fc584529b..2e21f90943f 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -408,7 +408,7 @@ class ShareAPIController extends OCSController {
private function retrieveFederatedDisplayName(array $userIds, bool $cacheOnly = false): array {
// check if gss is enabled and available
if (count($userIds) === 0
- || !$this->appManager->isInstalled('globalsiteselector')
+ || !$this->appManager->isEnabledForAnyone('globalsiteselector')
|| !class_exists('\OCA\GlobalSiteSelector\Service\SlaveService')) {
return [];
}