mirror of https://github.com/halo-dev/halo
feat: refine role template of uc content (#4962)
#### What type of PR is this? /area core /kind improvement /milestone 2.11.x #### What this PR does / why we need it: 优化个人中心相关的角色模板: 1. 暂时使用简体中文描述,等待 https://github.com/halo-dev/halo/issues/3573 获得支持。 2. 移除未使用的 post-attachment-viewer #### Does this PR introduce a user-facing change? ```release-note None ```pull/4965/head
parent
65ff7b85be
commit
a5639a8733
|
@ -6,7 +6,8 @@ metadata:
|
|||
rbac.authorization.halo.run/system-reserved: "true"
|
||||
annotations:
|
||||
rbac.authorization.halo.run/module: "Posts Management"
|
||||
rbac.authorization.halo.run/display-name: "Post Editor"
|
||||
# Currently, yaml definition does not support i18n, please see https://github.com/halo-dev/halo/issues/3573
|
||||
rbac.authorization.halo.run/display-name: "编辑者"
|
||||
rbac.authorization.halo.run/dependencies: |
|
||||
["role-template-manage-posts", "post-author"]
|
||||
rules: [ ]
|
||||
|
@ -20,7 +21,8 @@ metadata:
|
|||
rbac.authorization.halo.run/system-reserved: "true"
|
||||
annotations:
|
||||
rbac.authorization.halo.run/module: "Posts Management"
|
||||
rbac.authorization.halo.run/display-name: "Post Author"
|
||||
# Currently, yaml definition does not support i18n, please see https://github.com/halo-dev/halo/issues/3573
|
||||
rbac.authorization.halo.run/display-name: "作者"
|
||||
rbac.authorization.halo.run/disallow-access-console: "true"
|
||||
rbac.authorization.halo.run/redirect-on-login: "/uc"
|
||||
rbac.authorization.halo.run/dependencies: |
|
||||
|
@ -36,7 +38,8 @@ metadata:
|
|||
rbac.authorization.halo.run/system-reserved: "true"
|
||||
annotations:
|
||||
rbac.authorization.halo.run/module: "Posts Management"
|
||||
rbac.authorization.halo.run/display-name: "Post Contributor"
|
||||
# Currently, yaml definition does not support i18n, please see https://github.com/halo-dev/halo/issues/3573
|
||||
rbac.authorization.halo.run/display-name: "投稿者"
|
||||
rbac.authorization.halo.run/disallow-access-console: "true"
|
||||
rbac.authorization.halo.run/redirect-on-login: "/uc"
|
||||
rbac.authorization.halo.run/dependencies: |
|
||||
|
@ -85,20 +88,3 @@ rules:
|
|||
- apiGroups: [ "uc.api.content.halo.run" ]
|
||||
resources: [ "attachments" ]
|
||||
verbs: [ "create", "update", "delete" ]
|
||||
|
||||
---
|
||||
apiVersion: v1alpha1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: post-attachment-viewer
|
||||
labels:
|
||||
halo.run/role-template: "true"
|
||||
annotations:
|
||||
rbac.authorization.halo.run/module: "Posts Management"
|
||||
rbac.authorization.halo.run/display-name: "Post Attachment Viewer"
|
||||
rbac.authorization.halo.run/ui-permissions: |
|
||||
[ "uc:attachments:view" ]
|
||||
rules:
|
||||
- apiGroups: [ "uc.api.content.halo.run" ]
|
||||
resources: [ "attachments" ]
|
||||
verbs: [ "get", "list" ]
|
Loading…
Reference in New Issue