Open tribut opened 3 weeks ago
Thanks, looks like we need to move that check and depend on if the user already had an account on the system.
This check is also wrong, if a user already exists they should be accepted immediately if mail is disabled: https://github.com/dani-garcia/vaultwarden/blob/a4c7fadbf4ffa242fb78ebd152080028e7f2993c/src/api/core/organizations.rs#L1004-L1006 (This should only happen in case you had mail enabled invited a user and then disabled mails before the user accepted the invitation.)
Subject of the issue
When
invitations_allowed
is set tofalse
, the button "Resend invitation" in the organization view does not work. Instead, the error message "Invitations are not allowed" is shown.Your environment (Generated via diagnostics page)
Steps to reproduce
invitations_allowed
Expected behaviour
The invitation email is resent.
Actual behaviour
The error message "Invitations are not allowed" is shown.