From 437adbef962952afbac0adc470ef5aed7f3006e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Fri, 29 Jan 2021 19:31:49 +0900 Subject: [PATCH] fix: permission flag --- tests/utils.test.ts | 4 ++-- utils/Constants.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/utils.test.ts b/tests/utils.test.ts index ad74fab..7b35da6 100644 --- a/tests/utils.test.ts +++ b/tests/utils.test.ts @@ -13,8 +13,8 @@ test('format Number', () => { test('checking Permission', () => { expect(checkPerm(0x0, 0x0)).toBe(true) - expect(checkPerm(0x1, 0x2)).toBe(false) - expect(checkPerm(7, 'booster')).toBe(true) + expect(checkPerm(0x1, 0x4)).toBe(false) + expect(checkPerm(9, 'booster')).toBe(true) expect(checkPerm(0, 'staff')).toBe(false) expect(checkPerm(0x2, 'staff')).toBe(false) }) diff --git a/utils/Constants.ts b/utils/Constants.ts index ccf7020..3a15869 100644 --- a/utils/Constants.ts +++ b/utils/Constants.ts @@ -35,8 +35,8 @@ export const Status = { export const perms = { general: 0x0, staff: 0x1, - bughunter: 0x2, - booster: 0x4, + bughunter: 0x4, + booster: 0x8, } export const libs = [