Skip to content

Commit e28ea0d

Browse files
authored
build: Packaging error (#3772)
1 parent a3a124d commit e28ea0d

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

ui/src/permission/model/system-manage.ts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,12 @@ const systemManage = {
1313
'OR',
1414
),
1515
create: () => false,
16-
modify: () =>
17-
hasPermission([
18-
RoleConst.ADMIN,
19-
PermissionConst.RESOURCE_MODEL_EDIT
20-
],'OR'),
21-
paramSetting: () =>
22-
hasPermission([
23-
RoleConst.ADMIN,
24-
PermissionConst.RESOURCE_MODEL_EDIT
25-
],'OR'),
26-
delete: () =>
27-
hasPermission([
28-
RoleConst.ADMIN,
29-
PermissionConst.RESOURCE_MODEL_DELETE
30-
],'OR'),
16+
modify: (id: string) =>
17+
hasPermission([RoleConst.ADMIN, PermissionConst.RESOURCE_MODEL_EDIT], 'OR'),
18+
paramSetting: (id: string) =>
19+
hasPermission([RoleConst.ADMIN, PermissionConst.RESOURCE_MODEL_EDIT], 'OR'),
20+
delete: (id: string) =>
21+
hasPermission([RoleConst.ADMIN, PermissionConst.RESOURCE_MODEL_DELETE], 'OR'),
3122

3223
folderCreate: () => false,
3324
folderEdit: () => false,

0 commit comments

Comments
 (0)