Skip to content

Commit 0ef4b5c

Browse files
committed
Rule index org allow expansion
1 parent 8420094 commit 0ef4b5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/rbac/policy.rego

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ default scope_org := 0
9393
scope_org := org_allow([input.scope])
9494

9595
org_allow(roles) := num {
96+
# Rule index on org_owner being set.
97+
input.object.org_owner != ""
9698
allow := { id: num |
9799
id := org_members[_]
98100
set := { x |

0 commit comments

Comments
 (0)