Merge branch 'dev' of https://github.com/ajbura/cinny into dev

This commit is contained in:
ajbura 2022-02-14 21:34:57 +05:30
commit fe674ef2ea

View file

@ -233,7 +233,7 @@ function RoomPermissions({ roomId }) {
let powerLevel = 0; let powerLevel = 0;
let permValue = permInfo.parent let permValue = permInfo.parent
? permissions[permInfo.parent][permKey] ? permissions[permInfo.parent]?.[permKey]
: permissions[permKey]; : permissions[permKey];
if (!permValue) permValue = permInfo.default; if (!permValue) permValue = permInfo.default;