diff --git a/src/util/Permissions.js b/src/util/Permissions.js index 1649c3506..41420ae47 100644 --- a/src/util/Permissions.js +++ b/src/util/Permissions.js @@ -57,7 +57,7 @@ class Permissions { let total = 0; for (let p = permissions.length - 1; p >= 0; p--) { const perm = this.constructor.resolve(permissions[p]); - if ((this.bitfield & perm) !== perm) total |= perm; + total |= perm; } if (Object.isFrozen(this)) return new this.constructor(this.bitfield | total); this.bitfield |= total; @@ -73,7 +73,7 @@ class Permissions { let total = 0; for (let p = permissions.length - 1; p >= 0; p--) { const perm = this.constructor.resolve(permissions[p]); - if ((this.bitfield & perm) === perm) total |= perm; + total |= perm; } if (Object.isFrozen(this)) return new this.constructor(this.bitfield & ~total); this.bitfield &= ~total;