fix: permission flag

This commit is contained in:
원더 2021-01-29 19:31:49 +09:00
parent 761009ab9e
commit 437adbef96
2 changed files with 4 additions and 4 deletions

View File

@ -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)
})

View File

@ -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 = [