From b4f62ca60d8d500485cecaf9802f07bd373868de Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 23 Oct 2023 05:37:20 +0200 Subject: [PATCH] fixup --- lib/private/App/AppManager.php | 3 +++ 1 file changed, 3 insertions(+) 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;