Skip to content

Commit 1ac9dee

Browse files
committed
Fix union
1 parent 9722612 commit 1ac9dee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

policy/diamond/policy/tiled/tiled.rego

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ write_scopes := {
1414
"register",
1515
}
1616

17-
scopes_for(claims) := read_scopes & write_scopes if {
17+
scopes_for(claims) := read_scopes | write_scopes if {
1818
"azp" in object.keys(claims)
1919
print("azp", claims.azp)
2020
endswith(claims.azp, "-blueapi")

policy/diamond/policy/tiled/tiled_test.rego

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ test_wrong_azp_read_scopes if {
1515
}
1616

1717
test_blueapi_given_write_scopes if {
18-
tiled.scopes == tiled.read_scopes & tiled.write_scopes with token.claims as {"azp": "foo-blueapi"}
18+
tiled.scopes == tiled.read_scopes | tiled.write_scopes with token.claims as {"azp": "foo-blueapi"}
1919
}

0 commit comments

Comments
 (0)