apiVersion: v1alpha1
kind: "Role"
metadata:
  name: role-template-manage-permissions
  labels:
    halo.run/role-template: "true"
  annotations:
    rbac.authorization.halo.run/dependencies: "[ \"role-template-view-permissions\" ]"
    rbac.authorization.halo.run/module: "Permissions Management"
    rbac.authorization.halo.run/display-name: "Permissions Manage"
    rbac.authorization.halo.run/ui-permissions: |
      ["system:permissions:manage"]
rules:
  - apiGroups: [ "api.console.halo.run" ]
    resources: [ "users/permissions" ]
    verbs: [ "create", "patch", "update", "delete", "deletecollection" ]
---
apiVersion: v1alpha1
kind: "Role"
metadata:
  name: role-template-view-permissions
  labels:
    halo.run/role-template: "true"
  annotations:
    rbac.authorization.halo.run/module: "Permissions Management"
    rbac.authorization.halo.run/display-name: "Permissions View"
    rbac.authorization.halo.run/ui-permissions: |
      ["system:permissions:view"]
rules:
  - apiGroups: [ "api.console.halo.run" ]
    resources: [ "users/permissions" ]
    verbs: [ "get", "list" ]
