summaryrefslogtreecommitdiffstats
path: root/apps/dashboard
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-01-25 07:29:41 +0100
committerJulius Härtl <jus@bitgrid.net>2021-01-25 07:29:41 +0100
commitc5bc01f27f93e33bbe2c17b20c1e75b0786ee7f4 (patch)
tree322766300f8cd3063fb065ff5a2df96440fa6b50 /apps/dashboard
parent6129a851873287dde1f922b9d6f3aa4624a07133 (diff)
downloadnextcloud-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.php3
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(),