Skip to content

Commit a785c68

Browse files
committed
#2190 Make dashboard shared and writable by default
1 parent 508b2b7 commit a785c68

File tree

4 files changed

+3
-77
lines changed

4 files changed

+3
-77
lines changed

project/Common.scala

Lines changed: 0 additions & 74 deletions
This file was deleted.

thehive/app/org/thp/thehive/controllers/v0/DashboardCtrl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DashboardCtrl(
3232
.flatMap {
3333
case richDashboard if dashboard.status.value == "Shared" =>
3434
dashboardSrv
35-
.share(richDashboard.dashboard, request.organisation, writable = false)
35+
.share(richDashboard.dashboard, request.organisation, writable = true)
3636
.flatMap(_ => dashboardSrv.get(richDashboard.dashboard).richDashboard.getOrFail("Dashboard"))
3737
case richDashboard => Success(richDashboard)
3838
}

thehive/app/org/thp/thehive/controllers/v1/DashboardCtrl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class DashboardCtrl(
5858
.flatMap {
5959
case richDashboard if dashboard.status.value == "Shared" =>
6060
dashboardSrv
61-
.share(richDashboard.dashboard, request.organisation, writable = false)
61+
.share(richDashboard.dashboard, request.organisation, writable = true)
6262
.flatMap(_ => dashboardSrv.get(richDashboard.dashboard).richDashboard.getOrFail("Dashboard"))
6363
case richDashboard => Success(richDashboard)
6464
}

0 commit comments

Comments
 (0)