diff --git a/application/src/main/resources/extensions/role-template-uc-content.yaml b/application/src/main/resources/extensions/role-template-uc-content.yaml index 7e8678f31a..a859885b3f 100644 --- a/application/src/main/resources/extensions/role-template-uc-content.yaml +++ b/application/src/main/resources/extensions/role-template-uc-content.yaml @@ -9,7 +9,7 @@ metadata: rbac.authorization.halo.run/display-name: "文章管理员" rbac.authorization.halo.run/dependencies: | ["role-template-manage-posts"] -rules: [] +rules: [ ] --- apiVersion: v1alpha1 @@ -26,7 +26,7 @@ metadata: rbac.authorization.halo.run/display-name: "Post Editor" rbac.authorization.halo.run/dependencies: | ["role-template-manage-posts", "role-template-post-author"] -rules: [] +rules: [ ] --- apiVersion: v1alpha1 @@ -42,7 +42,7 @@ metadata: rbac.authorization.halo.run/redirect-on-login: "/uc" rbac.authorization.halo.run/dependencies: | [ "role-template-post-author" ] -rules: [] +rules: [ ] --- apiVersion: v1alpha1 @@ -57,7 +57,7 @@ metadata: rbac.authorization.halo.run/display-name: "Post Author" rbac.authorization.halo.run/dependencies: | [ "role-template-post-contributor", "role-template-post-publisher", "role-template-post-attachment-manager" ] -rules: [] +rules: [ ] --- apiVersion: v1alpha1 @@ -73,7 +73,7 @@ metadata: rbac.authorization.halo.run/redirect-on-login: "/uc" rbac.authorization.halo.run/dependencies: | [ "role-template-post-contributor" ] -rules: [] +rules: [ ] --- apiVersion: v1alpha1 @@ -91,12 +91,12 @@ metadata: rbac.authorization.halo.run/ui-permissions: | [ "uc:posts:manage" ] rules: - - apiGroups: ["uc.api.content.halo.run"] - resources: ["posts"] - verbs: ["get", "list", "create", "update", "delete"] - - apiGroups: ["uc.api.content.halo.run"] - resources: ["posts/draft"] - verbs: ["update", "get"] + - apiGroups: [ "uc.api.content.halo.run" ] + resources: [ "posts" ] + verbs: [ "get", "list", "create", "update", "delete" ] + - apiGroups: [ "uc.api.content.halo.run" ] + resources: [ "posts/draft" ] + verbs: [ "update", "get" ] --- apiVersion: v1alpha1 @@ -111,9 +111,9 @@ metadata: rbac.authorization.halo.run/ui-permissions: | [ "uc:posts:publish" ] rules: - - apiGroups: ["uc.api.content.halo.run"] - resources: ["posts/publish", "posts/unpublish"] - verbs: ["update"] + - apiGroups: [ "uc.api.content.halo.run" ] + resources: [ "posts/publish", "posts/unpublish" ] + verbs: [ "update" ] --- apiVersion: v1alpha1 @@ -128,6 +128,6 @@ metadata: rbac.authorization.halo.run/ui-permissions: | [ "uc:attachments:manage" ] rules: - - apiGroups: ["uc.api.content.halo.run"] - resources: ["attachments"] - verbs: ["create", "update", "delete"] + - apiGroups: [ "uc.api.content.halo.run" ] + resources: [ "attachments" ] + verbs: [ "create", "update", "delete" ]