Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
fix: oops
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jun 27, 2023
1 parent 6c1c59d commit 3c832c0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/institution/usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3c832c0

Please sign in to comment.