Skip to content

Commit

Permalink
#2190 Make dashboard shared and writable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Sep 2, 2021
1 parent 508b2b7 commit 7b01c89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DashboardCtrl(
.flatMap {
case richDashboard if dashboard.status.value == "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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class DashboardCtrl(
.flatMap {
case richDashboard if dashboard.status.value == "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)
}
Expand Down

0 comments on commit 7b01c89

Please sign in to comment.