Hiding custom perspective for user group

Hi, I have a problem with making my perspective only accessible for editors and admins. I created my own domain/domain rule and would like to give permissions to editors and admins to see the perspective. Maybe someone can explain where I’m making a mistake. I’m using v13.4.0.

  jcr:primaryType: hipposys:domain
    jcr:primaryType: hipposys:domainrule
      jcr:primaryType: hipposys:facetrule
      hipposys:equals: false
      hipposys:facet: plugin.class
      hipposys:filter: false
      hipposys:type: String
      hipposys:value: com.example.forms.FormPerspective
    jcr:primaryType: hipposys:authrole
    hipposys:groups: [editor]
    hipposys:role: admin