config: updated feature toggle name

This commit is contained in:
Hugo Häggmark authored and Leonard Gram committed 2019-03-19 13:59:39 +01:00
1 parent a6a3d698da
commit a90b3e331e
14 files changed
+18 -19

No files matched your search

+1 -1
View File
@@ -277,7 +277,7 @@ func (hs *HTTPServer) PostDashboard(c *m.ReqContext, cmd m.SaveDashboardCommand)
return Error(500, "Failed to save dashboard", err)
}
if hs.Cfg.EditorsCanOwn && newDashboard {
if hs.Cfg.EditorsCanAdmin && newDashboard {
aclService := dashboards.NewAclService()
inFolder := cmd.FolderId > 0
err := aclService.MakeUserAdmin(cmd.OrgId, cmd.UserId, dashboard.Id, !inFolder)