diff options
author | BlackDex <[email protected]> | 2021-12-31 11:53:21 +0100 |
---|---|---|
committer | BlackDex <[email protected]> | 2021-12-31 11:53:21 +0100 |
commit | 1fa178d1d3124aad5a11635297f13ff33d2fc062 (patch) | |
tree | 182900bdea4493081ef3403769b52c3f4097dc56 | |
parent | 920371929bc89f5000d26c55b834148b32c8058f (diff) | |
download | vaultwarden-1fa178d1d3124aad5a11635297f13ff33d2fc062.tar.gz vaultwarden-1fa178d1d3124aad5a11635297f13ff33d2fc062.zip |
Fixed issue #2154
For emergency access invitations we need to check if invites are
allowed, not if sign-ups are allowed.
-rw-r--r-- | src/api/core/emergency_access.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/core/emergency_access.rs b/src/api/core/emergency_access.rs index 6459829f..8ad1fdd1 100644 --- a/src/api/core/emergency_access.rs +++ b/src/api/core/emergency_access.rs @@ -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)) } |