소유자 관리자 진입 권한 보강

This commit is contained in:
2026-08-13 16:11:19 +09:00
parent 1453026e60
commit 2b232d0b51
14 changed files with 73 additions and 20 deletions

View File

@@ -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]