mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-24 22:52:09 -05:00
Consider channel overrides for perms, fixes #334.
This commit is contained in:
parent
4ec598db81
commit
d6169f3c3a
2 changed files with 3 additions and 2 deletions
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 52f1c3118a72a78adfd5b848b24725f5cf55dea1
|
||||
Subproject commit a612fddf481620d8578b7accb8ed312e7db5bc19
|
|
@ -27,7 +27,8 @@ export default observer(({ channel }: Props) => {
|
|||
for (const b of Object.keys(a)) {
|
||||
roles[b] = {
|
||||
name: a[b].name,
|
||||
permissions: a[b].permissions[1],
|
||||
permissions:
|
||||
channel.role_permissions?.[b] ?? a[b].permissions[1],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue