Consider channel overrides for perms, fixes #334.

This commit is contained in:
Paul 2021-10-10 19:44:05 +01:00
parent 4ec598db81
commit d6169f3c3a
2 changed files with 3 additions and 2 deletions

2
external/lang vendored

@ -1 +1 @@
Subproject commit 52f1c3118a72a78adfd5b848b24725f5cf55dea1
Subproject commit a612fddf481620d8578b7accb8ed312e7db5bc19

View file

@ -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],
};
}
}