Skip to content

Commit 407b236

Browse files
committed
Add comment
1 parent b696b1c commit 407b236

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/rbac/astvalue.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ func regoInputValue(subject Subject, action Action, object Object) (ast.Value, e
3232
return input, nil
3333
}
3434

35+
// regoPartialInputValue is the same as regoInputValue but only includes the
36+
// object type. This is for partial evaluations.
3537
func regoPartialInputValue(subject Subject, action Action, objectType string) (ast.Value, error) {
3638
regoSubj, err := subject.regoValue()
3739
if err != nil {

0 commit comments

Comments
 (0)