mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 16:42:36 +08:00
Big Backend Refatoring: Renamed Account -> Org
This commit is contained in:
@ -56,7 +56,7 @@ func RoleAuth(roles ...m.RoleType) macaron.Handler {
|
||||
return func(c *Context) {
|
||||
ok := false
|
||||
for _, role := range roles {
|
||||
if role == c.AccountRole {
|
||||
if role == c.OrgRole {
|
||||
ok = true
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user