This commit is contained in:
LASTA_DEV01\lasta
2026-05-19 20:31:52 +09:00
parent 00407e7a08
commit e260e5f218
104 changed files with 12898 additions and 1709 deletions

View File

@@ -45,6 +45,8 @@ class Permission(str, Enum):
VIEW_AUDIT_LOG = "view:audit"
VIEW_BILLING = "view:billing"
MANAGE_ORGANIZATION = "manage:org"
RUN_MAINTENANCE = "run:maintenance"
APPROVE_MAINTENANCE = "approve:maintenance"
class RBAC:
@@ -70,6 +72,8 @@ class RBAC:
Permission.VIEW_AUDIT_LOG,
Permission.VIEW_BILLING,
Permission.MANAGE_ORGANIZATION,
Permission.RUN_MAINTENANCE,
Permission.APPROVE_MAINTENANCE,
},
Role.EDITOR: {
# 읽기, 쓰기, 분석
@@ -85,6 +89,7 @@ class RBAC:
Permission.VIEW_ANALYTICS,
Permission.RUN_LLM_QUERY,
Permission.VIEW_BILLING,
Permission.RUN_MAINTENANCE,
},
Role.VIEWER: {
# 읽기, 분석, LLM만