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",
|
||||
"DeafenMembers",
|
||||
"MoveMembers",
|
||||
"ManageWebhooks",
|
||||
].includes(key) &&
|
||||
(!filter || filter.includes(key)),
|
||||
)
|
||||
|
|
|
@ -105,11 +105,12 @@ export default observer(({ channel }: Props) => {
|
|||
"ReadMessageHistory",
|
||||
"SendMessage",
|
||||
"ManageMessages",
|
||||
"ManageWebhooks",
|
||||
"InviteOthers",
|
||||
"SendEmbeds",
|
||||
"UploadFiles",
|
||||
"Masquerade",
|
||||
"ManageChannel",
|
||||
"ManagePermissions",
|
||||
]}
|
||||
target={channel}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue