소유자 관리자 진입 권한 보강
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import { createError } from 'h3'
|
||||
import { getPostgresClient } from './postgres-client'
|
||||
import { MEMBER_ROLE, PRIVILEGED_MEMBER_ROLES, isPrivilegedMemberRole } from '../../lib/member-role'
|
||||
|
||||
export const MEMBER_ROLE = {
|
||||
OWNER: 'owner',
|
||||
ADMIN: 'admin',
|
||||
VIP: 'vip',
|
||||
MEMBER: 'member'
|
||||
}
|
||||
export { MEMBER_ROLE, isPrivilegedMemberRole }
|
||||
|
||||
const PRIVILEGED_ROLES = [MEMBER_ROLE.OWNER, MEMBER_ROLE.ADMIN]
|
||||
const PRIVILEGED_ROLES = PRIVILEGED_MEMBER_ROLES
|
||||
const MEMBERSHIP_ACCESS_ROLES = [MEMBER_ROLE.OWNER, MEMBER_ROLE.ADMIN, MEMBER_ROLE.VIP]
|
||||
const BELOW_ADMIN_ROLES = [MEMBER_ROLE.VIP, MEMBER_ROLE.MEMBER]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user