Skip to content

Commit b8dd7e6

Browse files
committed
Fix api permission
Signed-off-by: Ryan Wang <[email protected]>
1 parent 8494a05 commit b8dd7e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/resources/extensions/role-templates.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ metadata:
1111
rbac.authorization.halo.run/display-name: "Comment Widget Public APIs"
1212
rules:
1313
- apiGroups: [ "api.commentwidget.halo.run" ]
14-
resources: [ "captcha/generate", "config" ]
14+
resources: [ "captcha/generate" ]
1515
verbs: [ "get" ]
16-
16+
- apiGroups: [ "api.commentwidget.halo.run" ]
17+
resources: [ "config" ]
18+
verbs: [ "list" ]

0 commit comments

Comments
 (0)