Team invite: Improve error message (Z#23239860) (#6368)

This commit is contained in:
Raphael Michel
2026-07-10 12:13:44 +02:00
committed by GitHub
parent 15c194c0a3
commit 723c63008d
+2 -1
View File
@@ -243,7 +243,8 @@ def invite(request, token):
if request.user.is_authenticated:
if inv.team.members.filter(pk=request.user.pk).exists():
messages.error(request, _('You cannot accept the invitation for "{}" as you already are part of '
'this team.').format(inv.team.name))
'this team. If you want to add a different user or create a new account, '
'log out and click the invitation link again.').format(inv.team.name))
return redirect('control:index')
else:
with transaction.atomic():