From 1fa178d1d3124aad5a11635297f13ff33d2fc062 Mon Sep 17 00:00:00 2001 From: BlackDex Date: Fri, 31 Dec 2021 11:53:21 +0100 Subject: [PATCH] Fixed issue #2154 For emergency access invitations we need to check if invites are allowed, not if sign-ups are allowed. --- src/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 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, 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)) }