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 Oct 6, 2021
1 parent 7625676 commit 4602d41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 4602d41

Please sign in to comment.