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

committed by
Leonard Gram

parent
a6a3d698da
commit
a90b3e331e
@ -61,7 +61,7 @@ func (hs *HTTPServer) CreateFolder(c *m.ReqContext, cmd m.CreateFolderCommand) R
|
||||
return toFolderError(err)
|
||||
}
|
||||
|
||||
if hs.Cfg.EditorsCanOwn {
|
||||
if hs.Cfg.EditorsCanAdmin {
|
||||
aclService := dashboards.NewAclService()
|
||||
if err := aclService.MakeUserAdmin(c.OrgId, c.SignedInUser.UserId, cmd.Result.Id, true); err != nil {
|
||||
hs.log.Error("Could not make user admin", "folder", cmd.Result.Title, "user", c.SignedInUser.UserId, "error", err)
|
||||
|
Reference in New Issue
Block a user