github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/multiplepathssamelookupresult.yaml (about)

     1  ---
     2  schema: |2+
     3      definition user {}
     4      definition folder {
     5        relation parent: folder
     6        relation hidden: folder
     7  
     8        relation owner: user
     9  
    10        permission can_read_hidden = owner + parent->can_read_hidden
    11        permission can_read = owner + parent->can_read_hidden
    12      }
    13      definition resource {
    14        relation parent: folder
    15        relation hidden: folder
    16  
    17        permission can_read_hidden = hidden->can_read_hidden
    18        permission can_read = parent->can_read + can_read_hidden
    19      }
    20  
    21  relationships: |-
    22    folder:test#owner@user:tom
    23    folder:normal#parent@folder:test
    24    resource:normal-1#parent@folder:normal
    25    resource:hidden-1#hidden@folder:normal
    26    resource:hidden-2#parent@folder:hidden
    27  assertions: null
    28  validation: null