vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 1fa178d1d3124aad5a11635297f13ff33d2fc062
parent 920371929bc89f5000d26c55b834148b32c8058f
Author: BlackDex <black.dex@gmail.com>
Date:   Fri, 31 Dec 2021 11:53:21 +0100

Fixed issue #2154

For emergency access invitations we need to check if invites are
allowed, not if sign-ups are allowed.

Diffstat:
Msrc/api/core/emergency_access.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)) }