fix: this logic was wrong, match original pr

This commit is contained in:
William Horning
2025-03-14 17:30:07 -04:00
committed by GitHub
parent fed74bc9f3
commit 897df0392e
+1 -1
View File
@@ -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);
}
}
}