Browse Source

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

Torkel Ödegaard 6 năm trước cách đây
mục cha
commit
1085055d61
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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
 }