fix: permission lists show wrong permissions (#603)

This commit is contained in:
Jan 2022-05-07 22:31:18 +02:00 committed by GitHub
parent 1590c5abab
commit 93ba922536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -26,6 +26,7 @@ export function PermissionList({ value, onChange, filter, target }: Props) {
"MuteMembers",
"DeafenMembers",
"MoveMembers",
"ManageWebhooks",
].includes(key) &&
(!filter || filter.includes(key)),
)

View file

@ -105,11 +105,12 @@ export default observer(({ channel }: Props) => {
"ReadMessageHistory",
"SendMessage",
"ManageMessages",
"ManageWebhooks",
"InviteOthers",
"SendEmbeds",
"UploadFiles",
"Masquerade",
"ManageChannel",
"ManagePermissions",
]}
target={channel}
/>