mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-08-24 23:22:58 -05:00
[GH-ISSUE #4640] Cannot re-send invitation to organisation when invitations_allowed==false #39183
Reference in New Issue
Block a user
Originally created by @tribut on GitHub (Jun 12, 2024).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/4640
Subject of the issue
When
invitations_allowedis 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_allowedExpected behaviour
The invitation email is resent.
Actual behaviour
The error message "Invitations are not allowed" is shown.
@BlackDex commented on GitHub (Jun 12, 2024):
Thanks, looks like we need to move that check and depend on if the user already had an account on the system.
@stefan0xC commented on GitHub (Jun 25, 2024):
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.)