Browse Source

BitInt != BigInt

Markus-Rost 3 years ago
parent
commit
f1830cb275
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dashboard/util.js

+ 1 - 1
dashboard/util.js

@@ -431,7 +431,7 @@ const permissions = {
  * @returns {Boolean}
  */
 function hasPerm(all = 0n, ...permission) {
-	all = BitInt(all);
+	all = BigInt(all);
 	if ( (all & permissions.ADMINISTRATOR) === permissions.ADMINISTRATOR ) return true;
 	return permission.every( perm => {
 		let bit = permissions[perm];