Skip to content

Commit

Permalink
refactor: translate permission names to Chinese (#130)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby authored Oct 21, 2024
1 parent c0ce9dc commit 50d8826
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/resources/extensions/roleTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
halo.run/role-template: "true"
annotations:
rbac.authorization.halo.run/module: "Moments"
rbac.authorization.halo.run/module: "瞬间"
rbac.authorization.halo.run/display-name: "瞬间查看"
rbac.authorization.halo.run/ui-permissions: |
["plugin:moments:view"]
Expand All @@ -24,7 +24,7 @@ metadata:
labels:
halo.run/role-template: "true"
annotations:
rbac.authorization.halo.run/module: "Moments"
rbac.authorization.halo.run/module: "瞬间"
rbac.authorization.halo.run/display-name: "瞬间管理"
rbac.authorization.halo.run/ui-permissions: |
["plugin:moments:manage"]
Expand All @@ -45,7 +45,7 @@ metadata:
labels:
halo.run/role-template: "true"
annotations:
rbac.authorization.halo.run/module: "Moments"
rbac.authorization.halo.run/module: "瞬间"
rbac.authorization.halo.run/display-name: "允许发布自己的瞬间"
rbac.authorization.halo.run/ui-permissions: |
["uc:plugin:moments:publish"]
Expand All @@ -61,7 +61,7 @@ metadata:
labels:
halo.run/role-template: "true"
annotations:
rbac.authorization.halo.run/module: "Moments"
rbac.authorization.halo.run/module: "瞬间"
rbac.authorization.halo.run/display-name: "发布瞬间无需审核"
rbac.authorization.halo.run/dependencies: |
["role-template-uc-moments-publish"]
Expand All @@ -75,7 +75,7 @@ metadata:
labels:
halo.run/role-template: "true"
annotations:
rbac.authorization.halo.run/module: "Moments"
rbac.authorization.halo.run/module: "瞬间"
rbac.authorization.halo.run/display-name: "允许删除自己的瞬间"
rbac.authorization.halo.run/ui-permissions: |
["uc:plugin:moments:delete"]
Expand Down

0 comments on commit 50d8826

Please sign in to comment.