@@ -36,11 +36,7 @@ func (r RoleType) Includes(other RoleType) bool {
return other != ROLE_ADMIN
}
- if r == ROLE_VIEWER {
- return other == ROLE_VIEWER
- }
-
- return false
+ return r == other
func (r *RoleType) UnmarshalJSON(data []byte) error {