permissions: broken out func for making creator admin.

This commit is contained in:
Leonard Gram
2019-03-19 13:57:21 +01:00
parent e174f7c20b
commit c8c004095c
5 changed files with 74 additions and 46 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func GetFolderByID(c *m.ReqContext) Response {
return JSON(200, toFolderDto(g, folder))
}
func CreateFolder(c *m.ReqContext, cmd m.CreateFolderCommand) Response {
func (hs *HTTPServer) CreateFolder(c *m.ReqContext, cmd m.CreateFolderCommand) Response {
s := dashboards.NewFolderService(c.OrgId, c.SignedInUser)
err := s.CreateFolder(&cmd)
if err != nil {