diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-01-25 07:29:41 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-01-25 07:29:41 +0100 |
commit | c5bc01f27f93e33bbe2c17b20c1e75b0786ee7f4 (patch) | |
tree | 322766300f8cd3063fb065ff5a2df96440fa6b50 /apps/dashboard | |
parent | 6129a851873287dde1f922b9d6f3aa4624a07133 (diff) | |
download | nextcloud-server-c5bc01f27f93e33bbe2c17b20c1e75b0786ee7f4.tar.gz nextcloud-server-c5bc01f27f93e33bbe2c17b20c1e75b0786ee7f4.zip |
Add config to specify a default dashboard layout
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard')
-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(), |