-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SubjectSetByType to properly *merge* mapped relations
- Loading branch information
1 parent
32e903f
commit 1404bff
Showing
5 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
internal/services/integrationtesting/testconfigs/arrowoversametype.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
schema: |+ | ||
definition user {} | ||
definition folder { | ||
relation parent: folder | ||
relation viewer: user | ||
permission view = viewer | ||
} | ||
definition document { | ||
relation folder: folder#parent | folder | ||
permission view = folder->view | ||
} | ||
relationships: >- | ||
document:firstdoc#folder@folder:folder1 | ||
document:firstdoc#folder@folder:folder2#parent | ||
folder:folder1#viewer@user:tom | ||
folder:folder2#viewer@user:fred | ||
assertions: | ||
assertTrue: | ||
- "document:firstdoc#view@user:tom#..." | ||
- "document:firstdoc#view@user:fred#..." |