Skip to content

Commit

Permalink
chore: update role template
Browse files Browse the repository at this point in the history
  • Loading branch information
guqing committed Sep 30, 2024
1 parent 157f695 commit ddda643
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ metadata:
# Currently, yaml definition does not support i18n, please see https://github.com/halo-dev/halo/issues/3573
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" ]
[ "role-template-post-contributor", "role-template-post-publisher", "role-template-uc-attachment-manager" ]
rules: [ ]

---
Expand Down Expand Up @@ -99,21 +99,15 @@ rules:
verbs: [ "update" ]

---
# TODO remove this in next major version
apiVersion: v1alpha1
kind: Role
metadata:
name: role-template-post-attachment-manager
deletionTimestamp: 2024-09-30T14:00:41.813954138Z
labels:
halo.run/role-template: "true"
annotations:
rbac.authorization.halo.run/module: "Posts Management"
rbac.authorization.halo.run/display-name: "Post Attachment Manager"
rbac.authorization.halo.run/ui-permissions: |
[ "uc:attachments:manage" ]
rules:
- apiGroups: [ "uc.api.storage.halo.run" ]
resources: [ "attachments" ]
verbs: [ "create", ]
- apiGroups: [ "uc.api.storage.halo.run" ]
resources: [ "attachments/upload-from-url" ]
verbs: [ "create" ]
rules: [ ]

0 comments on commit ddda643

Please sign in to comment.