diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index b6f7f9b13b7..2603b03ee84 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -395,10 +395,12 @@ class AppManager implements IAppManager { * Notice: This actually checks if the app is enabled and not only if it is installed. * * @param string $appId - * @param IGroup[]|String[] $groups - * @return bool */ - public function isInstalled($appId) { + public function isInstalled($appId): bool { + return $this->isEnabledForAnyone($appId); + } + + public function isEnabledForAnyone(string $appId): bool { $installedApps = $this->getInstalledAppsValues(); return isset($installedApps[$appId]); } diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php index 110bcacf396..ee090bcff9d 100644 --- a/lib/public/App/IAppManager.php +++ b/lib/public/App/IAppManager.php @@ -79,9 +79,17 @@ interface IAppManager { * @param string $appId * @return bool * @since 8.0.0 + * @deprecated 31.0.0 Use either {@see self::isEnabledForUser} or {@see self::isEnabledForAnyone} */ public function isInstalled($appId); + /** + * Check if an app is enabled in the instance, either for everyone or for specific groups + * + * @since 31.0.0 + */ + public function isEnabledForAnyone(string $appId): bool; + /** * Check if an app should be enabled by default *