mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboards: Allow updating a dashboard if the user doesn't have access to the parent folder (#78075)
* change where folder checks are done for dash creation/updates * add test for folder not being found * test fixes * more test fixes * add nlint directive to where folder IDs are used * fix bad merge * fix test
This commit is contained in:
@@ -405,7 +405,7 @@ func TestIntegrationCreate(t *testing.T) {
|
||||
var m util.DynMap
|
||||
err = json.Unmarshal(b, &m)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, "Folder not found", m["message"])
|
||||
assert.Equal(t, dashboards.ErrFolderNotFound.Error(), m["message"])
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user