Browse Source

Merge PR https://github.com/grafana/grafana/pull/16093

Torkel Ödegaard 6 years ago
parent
commit
1085055d61
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pkg/models/org_user.go

+ 4 - 0
pkg/models/org_user.go

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