diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-01-25 20:48:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 20:48:01 +0100 |
commit | a1a1771a26d0c6ce5c0e0734e8c99ec0c26ce11c (patch) | |
tree | 6eae5cbcd254964f50cf982c58f4b89eb3c31f70 /apps | |
parent | c6df3d9694c78a23ca67e91dda372ec0b3e4ffe0 (diff) | |
parent | c5bc01f27f93e33bbe2c17b20c1e75b0786ee7f4 (diff) | |
download | nextcloud-server-a1a1771a26d0c6ce5c0e0734e8c99ec0c26ce11c.tar.gz nextcloud-server-a1a1771a26d0c6ce5c0e0734e8c99ec0c26ce11c.zip |
Merge pull request #25309 from nextcloud/enh/dashboard-default-layout
Add config to specify a default dashboard layout
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index bc6cd02abbc..63508f28c83 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -99,7 +99,8 @@ class DashboardController extends Controller { $this->eventDispatcher->dispatchTyped(new RegisterWidgetEvent($this->dashboardManager)); - $userLayout = explode(',', $this->config->getUserValue($this->userId, 'dashboard', 'layout', 'recommendations,spreed,mail,calendar')); + $systemDefault = $this->config->getAppValue('dashboard', 'layout', 'recommendations,spreed,mail,calendar'); + $userLayout = explode(',', $this->config->getUserValue($this->userId, 'dashboard', 'layout', $systemDefault)); $widgets = array_map(function (IWidget $widget) { return [ 'id' => $widget->getId(), |