()
| 421 | } |
| 422 | |
| 423 | func (g Group) RBACObject() rbac.Object { |
| 424 | return rbac.ResourceGroup.WithID(g.ID). |
| 425 | InOrg(g.OrganizationID). |
| 426 | // Group members can read the group. |
| 427 | WithGroupACL(map[string][]policy.Action{ |
| 428 | g.ID.String(): { |
| 429 | policy.ActionRead, |
| 430 | }, |
| 431 | }) |
| 432 | } |
| 433 | |
| 434 | func (g GetGroupsRow) RBACObject() rbac.Object { |
| 435 | return g.Group.RBACObject() |
nothing calls this directly
no test coverage detected