Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby committed Jan 22, 2024
1 parent 3911fd4 commit 517adce
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
rbac.authorization.halo.run/display-name: "文章管理员"
rbac.authorization.halo.run/dependencies: |
["role-template-manage-posts"]
rules: []
rules: [ ]

---
apiVersion: v1alpha1
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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" ]

0 comments on commit 517adce

Please sign in to comment.