mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 16:53:36 -05:00
fix: permission lists show wrong permissions (#603)
This commit is contained in:
parent
1590c5abab
commit
93ba922536
2 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,7 @@ export function PermissionList({ value, onChange, filter, target }: Props) {
|
||||||
"MuteMembers",
|
"MuteMembers",
|
||||||
"DeafenMembers",
|
"DeafenMembers",
|
||||||
"MoveMembers",
|
"MoveMembers",
|
||||||
|
"ManageWebhooks",
|
||||||
].includes(key) &&
|
].includes(key) &&
|
||||||
(!filter || filter.includes(key)),
|
(!filter || filter.includes(key)),
|
||||||
)
|
)
|
||||||
|
|
|
@ -105,11 +105,12 @@ export default observer(({ channel }: Props) => {
|
||||||
"ReadMessageHistory",
|
"ReadMessageHistory",
|
||||||
"SendMessage",
|
"SendMessage",
|
||||||
"ManageMessages",
|
"ManageMessages",
|
||||||
"ManageWebhooks",
|
|
||||||
"InviteOthers",
|
"InviteOthers",
|
||||||
"SendEmbeds",
|
"SendEmbeds",
|
||||||
"UploadFiles",
|
"UploadFiles",
|
||||||
"Masquerade",
|
"Masquerade",
|
||||||
|
"ManageChannel",
|
||||||
|
"ManagePermissions",
|
||||||
]}
|
]}
|
||||||
target={channel}
|
target={channel}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue