For emergency access invitations we need to check if invites are
allowed, not if sign-ups are allowed.
pull/2194/head
BlackDex 3 years ago
parent 920371929b
commit 1fa178d1d3
No known key found for this signature in database
GPG Key ID: 58C80A2AA6C765E1

@ -182,7 +182,7 @@ fn send_invite(data: JsonUpcase<EmergencyAccessInviteData>, headers: Headers, co
let grantee_user = match User::find_by_mail(&email, &conn) {
None => {
if !CONFIG.signups_allowed() {
if !CONFIG.invitations_allowed() {
err!(format!("Grantee user does not exist: {}", email))
}

Loading…
Cancel
Save