fix: Ban button displayed for already banned users

This commit is contained in:
Christian Kußowski 2025-06-18 08:48:31 +02:00 committed by ggurdin
parent 5f8578087c
commit 2f21216db5
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -170,7 +170,7 @@ void showMemberActionsPopupMenu({
],
),
),
if (user.canBan)
if (user.canBan && user.membership != Membership.ban)
PopupMenuItem(
value: _MemberActions.ban,
child: Row(