permission: fix user with org viewer save/move permissions

User with org viewer role should not be able to save/move dashboards
in/to general folder.
This commit is contained in:
Marcus Efraimsson
2018-04-11 00:23:50 +02:00
parent 93e1546f73
commit b4863002c9
6 changed files with 191 additions and 34 deletions

View File

@@ -51,6 +51,7 @@ func TestDashboardService(t *testing.T) {
})
bus.AddHandler("test", func(cmd *models.ValidateDashboardBeforeSaveCommand) error {
cmd.Result = &models.ValidateDashboardBeforeSaveResult{}
return nil
})