Merge branch 'patch-1' of https://github.com/sairam0903/grafana into sairam0903-patch-1

This commit is contained in:
Torkel Ödegaard 2019-03-20 10:50:11 +01:00
commit fd4ee6b032
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@ func (r RoleType) Includes(other RoleType) bool {
if r == ROLE_EDITOR {
return other != ROLE_ADMIN
}
if r == ROLE_VIEWER {
return other == ROLE_VIEWER
}
return false
}