From 4602d41c6cb598dc251e25a272badf090cf55ef6 Mon Sep 17 00:00:00 2001 From: To-om Date: Wed, 6 Oct 2021 10:57:04 +0200 Subject: [PATCH] #2190 Make dashboard shared and writable by default --- thehive/app/org/thp/thehive/controllers/v0/DashboardCtrl.scala | 2 +- thehive/app/org/thp/thehive/controllers/v1/DashboardCtrl.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thehive/app/org/thp/thehive/controllers/v0/DashboardCtrl.scala b/thehive/app/org/thp/thehive/controllers/v0/DashboardCtrl.scala index 5224dfa4f3..c012d820a8 100644 --- a/thehive/app/org/thp/thehive/controllers/v0/DashboardCtrl.scala +++ b/thehive/app/org/thp/thehive/controllers/v0/DashboardCtrl.scala @@ -38,7 +38,7 @@ class DashboardCtrl @Inject() ( .flatMap { case richDashboard if dashboard.status == "Shared" => dashboardSrv - .share(richDashboard.dashboard, request.organisation, writable = false) + .share(richDashboard.dashboard, request.organisation, writable = true) .flatMap(_ => dashboardSrv.get(richDashboard.dashboard).richDashboard.getOrFail("Dashboard")) case richDashboard => Success(richDashboard) } diff --git a/thehive/app/org/thp/thehive/controllers/v1/DashboardCtrl.scala b/thehive/app/org/thp/thehive/controllers/v1/DashboardCtrl.scala index 7b539e105b..3f358942bd 100644 --- a/thehive/app/org/thp/thehive/controllers/v1/DashboardCtrl.scala +++ b/thehive/app/org/thp/thehive/controllers/v1/DashboardCtrl.scala @@ -63,7 +63,7 @@ class DashboardCtrl @Inject() ( .flatMap { case richDashboard if dashboard.status == "Shared" => dashboardSrv - .share(richDashboard.dashboard, request.organisation, writable = false) + .share(richDashboard.dashboard, request.organisation, writable = true) .flatMap(_ => dashboardSrv.get(richDashboard.dashboard).richDashboard.getOrFail("Dashboard")) case richDashboard => Success(richDashboard) }