mirror of https://github.com/halo-dev/halo
fix: permissions for post content versions (#5819)
#### What type of PR is this? /kind bug /area core /milestone 2.15.x #### What this PR does / why we need it: 修复拥有文章管理权限的用户无法正常使用版本历史的问题 #### Which issue(s) this PR fixes: Fixes #5815 #### Does this PR introduce a user-facing change? ```release-note 修复拥有文章管理权限的用户无法正常使用版本历史的问题 ```pull/5822/head
parent
3916d5b8e5
commit
d86ddf4a04
|
@ -37,5 +37,5 @@ rules:
|
|||
resources: [ "posts" ]
|
||||
verbs: [ "get", "list" ]
|
||||
- apiGroups: [ "api.console.halo.run" ]
|
||||
resources: [ "posts", "posts/head-content", "posts/release-content", "posts/snapshot" ]
|
||||
resources: [ "posts", "posts/head-content", "posts/release-content", "posts/snapshot", "posts/content" ]
|
||||
verbs: [ "get", "list" ]
|
||||
|
|
|
@ -35,5 +35,5 @@ rules:
|
|||
resources: [ "singlepages" ]
|
||||
verbs: [ "get", "list" ]
|
||||
- apiGroups: [ "api.console.halo.run" ]
|
||||
resources: [ "singlepages", "singlepages/head-content", "singlepages/release-content", "singlepages/snapshot" ]
|
||||
resources: [ "singlepages", "singlepages/head-content", "singlepages/release-content", "singlepages/snapshot", "singlepages/content" ]
|
||||
verbs: [ "get", "list" ]
|
||||
|
|
Loading…
Reference in New Issue