mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 23:22:16 +08:00
refactor(apps): more WIP work on apps
This commit is contained in:
@ -254,6 +254,6 @@ func (ctx *Context) JsonApiErr(status int, message string, err error) {
|
||||
ctx.JSON(status, resp)
|
||||
}
|
||||
|
||||
func (ctx *Context) hasUserRole(role m.RoleType) bool {
|
||||
func (ctx *Context) HasUserRole(role m.RoleType) bool {
|
||||
return ctx.OrgRole.Includes(role)
|
||||
}
|
||||
|
Reference in New Issue
Block a user