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

Method WithACLUserList

coderd/rbac/object.go:217–227  ·  view source on GitHub ↗

WithACLUserList adds an ACL list to a given object

(acl map[string][]policy.Action)

Source from the content-addressed store, hash-verified

215
216// WithACLUserList adds an ACL list to a given object
217func (z Object) WithACLUserList(acl map[string][]policy.Action) Object {
218 return Object{
219 ID: z.ID,
220 Owner: z.Owner,
221 OrgID: z.OrgID,
222 Type: z.Type,
223 ACLUserList: acl,
224 ACLGroupList: z.ACLGroupList,
225 AnyOrgOwner: z.AnyOrgOwner,
226 }
227}
228
229func (z Object) WithGroupACL(groups map[string][]policy.Action) Object {
230 return Object{

Callers 11

benchmarkSetupFunction · 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
TestWorkspaceMethod · 0.80

Calls

no outgoing calls

Tested by 5

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