Skip to content

Commit

Permalink
fix: permissions for post content versions (halo-dev#5819)
Browse files Browse the repository at this point in the history
#### 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 halo-dev#5815 

#### Does this PR introduce a user-facing change?
```release-note
修复拥有文章管理权限的用户无法正常使用版本历史的问题
```
  • Loading branch information
guqing authored Apr 28, 2024
1 parent 3916d5b commit d86ddf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit d86ddf4

Please sign in to comment.