diff --git a/internal/institution/usecase.go b/internal/institution/usecase.go index a161f69..3f436c3 100644 --- a/internal/institution/usecase.go +++ b/internal/institution/usecase.go @@ -173,10 +173,6 @@ func (u useCase) authorizedForInvite(ctx context.Context, principal, shortName s return fmt.Errorf("failed to find user: %w", err) } - if usr.Edges.Institution == nil { - return fmt.Errorf("invariant") - } - if usr.Role != institution.RoleAdmin { return ErrUnauthorized }