소스 검색

BitInt != BigInt

Markus-Rost 3 년 전
부모
커밋
f1830cb275
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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];