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

View File

@@ -27,7 +27,8 @@ export default observer(({ channel }: Props) => {
for (const b of Object.keys(a)) { for (const b of Object.keys(a)) {
roles[b] = { roles[b] = {
name: a[b].name, name: a[b].name,
permissions: a[b].permissions[1], permissions:
channel.role_permissions?.[b] ?? a[b].permissions[1],
}; };
} }
} }