Skip to content

Commit f856212

Browse files
authored
fix(authz): access pdp should use proto getter (#2530)
### Proposed Changes * Fixes one direct access of proto fields without using nil-safe getter ### Checklist - [ ] I have added or updated unit tests - [ ] I have added or updated integration tests (if appropriate) - [ ] I have added or updated documentation ### Testing Instructions
1 parent 443cedb commit f856212

File tree

1 file changed

+1
-1
lines changed
  • service/internal/access/v2

1 file changed

+1
-1
lines changed

service/internal/access/v2/pdp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func NewPolicyDecisionPoint(
116116
mappedValue := sm.GetAttributeValue()
117117
mappedValueFQN := mappedValue.GetFqn()
118118
if _, ok := allEntitleableAttributesByValueFQN[mappedValueFQN]; ok {
119-
allEntitleableAttributesByValueFQN[mappedValueFQN].Value.SubjectMappings = append(allEntitleableAttributesByValueFQN[mappedValueFQN].Value.SubjectMappings, sm)
119+
allEntitleableAttributesByValueFQN[mappedValueFQN].GetValue().SubjectMappings = append(allEntitleableAttributesByValueFQN[mappedValueFQN].GetValue().GetSubjectMappings(), sm)
120120
continue
121121
}
122122
// Take subject mapping's attribute value and its definition from memory

0 commit comments

Comments
 (0)