From 5c139fb3ca7afc7ca1c4ec314e472db902de07d2 Mon Sep 17 00:00:00 2001 From: Supertiger Date: Wed, 11 Dec 2024 18:34:22 +0000 Subject: [PATCH] fix edit roles not showing --- src/components/member-context-menu/MemberContextMenu.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/member-context-menu/MemberContextMenu.tsx b/src/components/member-context-menu/MemberContextMenu.tsx index f5cc437e..23fcaff3 100644 --- a/src/components/member-context-menu/MemberContextMenu.tsx +++ b/src/components/member-context-menu/MemberContextMenu.tsx @@ -121,6 +121,9 @@ export default function MemberContextMenu(props: Props) { const createArr = []; hasNicknamePermission && createArr.push(nickname); + if (hasManageRolePermission) { + createArr.push(editRoles); + } if (hasBanPermission || hasKickPermission) { createArr.push(separator); }