MCPcopy Index your code
hub / github.com/coder/coder / WithGroupACL

Method WithGroupACL

coderd/rbac/object.go:229–239  ·  view source on GitHub ↗
(groups map[string][]policy.Action)

Source from the content-addressed store, hash-verified

227}
228
229func (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.

Callers 14

benchmarkSetupFunction · 0.80
TestRolePermissionsFunction · 0.80
TestAuthorizeDomainFunction · 0.80
TestRegoInputValueFunction · 0.80
RBACObjectMethod · 0.80
RBACObjectMethod · 0.80
RBACObjectMethod · 0.80
RBACObjectMethod · 0.80
RBACObjectMethod · 0.80
RBACObjectMethod · 0.80

Calls

no outgoing calls

Tested by 7

benchmarkSetupFunction · 0.64
TestRolePermissionsFunction · 0.64
TestAuthorizeDomainFunction · 0.64
TestRegoInputValueFunction · 0.64
TestWorkspaceMethod · 0.64