diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index ab7b470bb8d8c..59211733110d9 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -831,6 +831,7 @@ public function getDefaultAppForUser(?IUser $user = null, bool $withFallbacks = $user ??= $this->userSession->getUser(); + $this->logger->warning('grepme', ['user' => $user, 'apps' => $defaultApps]); if ($user !== null) { $userDefaultApps = explode(',', $this->config->getUserValue($user->getUID(), 'core', 'defaultapp')); $defaultApps = array_filter(array_merge($userDefaultApps, $defaultApps)); @@ -848,10 +849,12 @@ public function getDefaultAppForUser(?IUser $user = null, bool $withFallbacks = if (empty($defaultApps) && $withFallbacks) { $defaultApps = ['dashboard','files']; } + $this->logger->warning('grepme', ['user' => $user, 'apps' => $defaultApps]); // Find the first app that is enabled for the current user foreach ($defaultApps as $defaultApp) { $defaultApp = \OC_App::cleanAppId(strip_tags($defaultApp)); + $this->logger->warning('grepme', ['app' => $defaultApp, 'enabled' => $this->isEnabledForUser($defaultApp, $user)]); if ($this->isEnabledForUser($defaultApp, $user)) { $appId = $defaultApp; break;