mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 12:22:11 +08:00
config: updated feature toggle name
This commit is contained in:

committed by
Leonard Gram

parent
a6a3d698da
commit
a90b3e331e
@ -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)
|
||||
|
Reference in New Issue
Block a user