diff --git a/pkg/models/org_user.go b/pkg/models/org_user.go index b6ecd924e9a..723783110fd 100644 --- a/pkg/models/org_user.go +++ b/pkg/models/org_user.go @@ -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 }