(groups map[string][]policy.Action)
| 227 | } |
| 228 | |
| 229 | func (z Object) WithGroupACL(groups map[string][]policy.Action) Object { |
| 230 | return Object{ |
| 231 | ID: z.ID, |
| 232 | Owner: z.Owner, |
| 233 | OrgID: z.OrgID, |
| 234 | Type: z.Type, |
| 235 | ACLUserList: z.ACLUserList, |
| 236 | ACLGroupList: groups, |
| 237 | AnyOrgOwner: z.AnyOrgOwner, |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | // TODO(geokat): similar to builtInRoles, this should ideally be |
| 242 | // scoped to a coderd rather than a global. |
no outgoing calls