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 a785c68
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 77 deletions.
74 changes: 0 additions & 74 deletions project/Common.scala

This file was deleted.

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 a785c68

Please sign in to comment.