From e0a9c2d541f6f49a26f07380acd30dfeb4ee610e Mon Sep 17 00:00:00 2001 From: John Niang Date: Mon, 14 Nov 2022 11:37:45 +0800 Subject: [PATCH] Refine policy rules of post role template --- src/main/resources/extensions/role-template-post.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/extensions/role-template-post.yaml b/src/main/resources/extensions/role-template-post.yaml index 8074c5596b..5860118de4 100644 --- a/src/main/resources/extensions/role-template-post.yaml +++ b/src/main/resources/extensions/role-template-post.yaml @@ -16,7 +16,7 @@ rules: resources: [ "posts" ] verbs: [ "*" ] - apiGroups: [ "api.console.halo.run" ] - resources: [ "posts", "posts/publish", "contents", "contents/publish" ] + resources: [ "posts", "posts/publish", "posts/unpublish", "posts/recycle", "contents", "contents/publish" ] verbs: [ "create", "patch", "update", "delete", "deletecollection" ] --- apiVersion: v1alpha1