Skip to content

Commit 1b95b52

Browse files
committed
feat: Permission constants
1 parent 899e37b commit 1b95b52

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/common/constants/permission_constants.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,14 @@ class PermissionConstants(Enum):
13601360
group=Group.SYSTEM_RES_MODEL, operate=Operate.READ, role_list=[RoleConstants.ADMIN],
13611361
parent_group=[SystemGroup.RESOURCE_MODEL]
13621362
)
1363+
RESOURCE_MODEL_EDIT = Permission(
1364+
group=Group.SYSTEM_RES_MODEL, operate=Operate.EDIT, role_list=[RoleConstants.ADMIN],
1365+
parent_group=[SystemGroup.RESOURCE]
1366+
)
1367+
RESOURCE_MODEL_DELETE = Permission(
1368+
group=Group.SYSTEM_RES_MODEL, operate=Operate.DELETE, role_list=[RoleConstants.ADMIN],
1369+
parent_group=[SystemGroup.RESOURCE]
1370+
)
13631371
OPERATION_LOG_READ = Permission(
13641372
group=Group.OPERATION_LOG, operate=Operate.READ, role_list=[RoleConstants.ADMIN],
13651373
parent_group=[SystemGroup.OPERATION_LOG]

0 commit comments

Comments
 (0)