mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 09:05:59 -04:00
fix: this logic was wrong, match original pr
This commit is contained in:
@@ -136,7 +136,7 @@ export function calculatePermission(
|
||||
for (const id of roles) {
|
||||
const override = target.rolePermissions[id];
|
||||
if (override) {
|
||||
perm = perm & BigInt(override.a) & ~BigInt(override.d);
|
||||
perm = (perm | BigInt(override.a)) & ~BigInt(override.d);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user