Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: John Schaeffer <[email protected]>
Signed-off-by: Bailin He <[email protected]>
  • Loading branch information
bailinhe and jnschaeffer authored Mar 22, 2024
1 parent 0080dfb commit 8d903da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/iapl/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ func (v *policy) createRoleBindingResourceType() {
}

// 3. create a list of action-bindings representing permissions for all the
// actions
// actions in the policy
actionbindings := make([]ActionBinding, 0, len(v.ac))

for actionName := range v.ac {
Expand Down
4 changes: 2 additions & 2 deletions internal/iapl/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ For example, consider the following spicedb schema:
relation rolebinding_delete_rel: user:* | client:*
}
definition role_binding {
definition rolebinding {
relation role: role
relation subject: user | group#member
permission view_organization = subject & role->view_organization
Expand All @@ -99,7 +99,7 @@ For example, consider the following spicedb schema:
```
in IAPL policy terms:
- the RoleResource would be "role"
- the RoleBindingResource would be "role_binding",
- the RoleBindingResource would be "rolebinding",
- the RoleRelationshipSubject would be `[user, client]`.
- the RoleBindingSubjects would be `[{name: user}, {name: group, subjectrelation: member}]`.
*/
Expand Down

0 comments on commit 8d903da

Please sign in to comment.