Skip to content

Commit a3f4a9a

Browse files
committed
fix: update sys rules;
1 parent 270f766 commit a3f4a9a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/devops-server/src/router/sys_rules.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ export default {
33
"read": "$has('admin.read')",
44
"update": "$has('admin.edit')",
55
"add": "$has('admin.create')",
6-
"remove": "$has('admin.delete')"
6+
"remove": "$has('admin.delete')",
7+
"count": "$has('admin.read')"
78
},
89
"__permissions": {
910
"read": "$has('permission.read')",
@@ -21,13 +22,15 @@ export default {
2122
"notExists": "/__admins/roles"
2223
}
2324
}
24-
}
25+
},
26+
"count": "$has('role.read')"
2527
},
2628
"__policies": {
2729
"read": "$has('policy.read')",
2830
"update": "$has('policy.edit')",
2931
"add": "$has('policy.create')",
30-
"remove": "$has('policy.delete')"
32+
"remove": "$has('policy.delete')",
33+
"count": "$has('policy.read')"
3134
},
3235
"__functions": {
3336
"read": "$has('function.read')",

0 commit comments

Comments
 (0)