Skip to content

Commit ee1ca6f

Browse files
committed
refactor: permission
1 parent e6c2e4f commit ee1ca6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/common/constants/permission_constants.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class Group(Enum):
6262
OVERVIEW = "OVERVIEW"
6363
APPLICATION_ACCESS = "APPLICATION_ACCESS"
6464
APPLICATION_CHAT_LOG = "APPLICATION_CHAT_LOG"
65+
OPERATION_LOG = "OPERATION_LOG"
6566

6667

6768
class SystemGroup(Enum):
@@ -1077,6 +1078,10 @@ class PermissionConstants(Enum):
10771078
group=Group.SYSTEM_RES_KNOWLEDGE_PROBLEM, operate=Operate.DELETE, role_list=[RoleConstants.ADMIN],
10781079
parent_group=[SystemGroup.RESOURCE_KNOWLEDGE]
10791080
)
1081+
OPERATION_LOG_READ = Permission(
1082+
group=Group.OPERATION_LOG, operate=Operate.READ, role_list=[RoleConstants.ADMIN],
1083+
parent_group=[SystemGroup.OPERATION_LOG]
1084+
)
10801085

10811086
def get_workspace_application_permission(self):
10821087
return lambda r, kwargs: Permission(group=self.value.group, operate=self.value.operate,

0 commit comments

Comments
 (0)