From 3916d5b8e5d7346da66e9ba02bea57058bc9904e Mon Sep 17 00:00:00 2001 From: Takagi <1103069291@qq.com> Date: Sun, 28 Apr 2024 11:22:11 +0800 Subject: [PATCH] fix: the post admin does not have tag list permissions (#5818) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug /area ui #### What this PR does / why we need it: 补充 #5593 中缺少的 `api.console.halo.run` 权限。用于解决具有文章列表权限的用户,访问标签列表时提示无权限的问题 #### How to test it? 创建一个具有文章列表查看权限的用户,是否能够访问到标签列表。 #### Which issue(s) this PR fixes: Fixes #5814 #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../src/main/resources/extensions/role-template-tag.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/src/main/resources/extensions/role-template-tag.yaml b/application/src/main/resources/extensions/role-template-tag.yaml index d2515e758..868812e2e 100644 --- a/application/src/main/resources/extensions/role-template-tag.yaml +++ b/application/src/main/resources/extensions/role-template-tag.yaml @@ -23,3 +23,6 @@ rules: - apiGroups: [ "content.halo.run" ] resources: [ "tags" ] verbs: [ "get", "list" ] + - apiGroups: [ "api.console.halo.run" ] + resources: [ "tags" ] + verbs: [ "get", "list" ]