Skip to content

Commit

Permalink
Fix bug- invite user is enabled when smtp server is not configured (#…
Browse files Browse the repository at this point in the history
…4224)

* Fix bug- invite user is enabled when SMTP server is not configured
  • Loading branch information
idanovo authored Sep 21, 2022
1 parent 50559ca commit ef2cb8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/auth/invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ func (i *EmailInviteHandler) InviteUser(ctx context.Context, email string) error
}

func (i *EmailInviteHandler) IsInviteSupported() bool {
return i.emailer != nil
return i.emailer != nil && i.emailer.Params.SMTPHost != ""
}

0 comments on commit ef2cb8c

Please sign in to comment.