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

Method InOrg

coderd/rbac/object.go:177–188  ·  view source on GitHub ↗

InOrg adds an org OwnerID to the resource

(orgID uuid.UUID)

Source from the content-addressed store, hash-verified

175
176// InOrg adds an org OwnerID to the resource
177func (z Object) InOrg(orgID uuid.UUID) Object {
178 return Object{
179 ID: z.ID,
180 Owner: z.Owner,
181 OrgID: orgID.String(),
182 Type: z.Type,
183 ACLUserList: z.ACLUserList,
184 ACLGroupList: z.ACLGroupList,
185 // InOrg implies AnyOrgOwner is false
186 AnyOrgOwner: false,
187 }
188}
189
190func (z Object) AnyOrganization() Object {
191 return Object{

Callers 15

provisionerDaemonsMethod · 0.80
TestTemplateVersionFunction · 0.80
createWorkspaceFunction · 0.80
patchWorkspaceACLMethod · 0.80
postChatsMethod · 0.80
postChatFileMethod · 0.80

Calls 1

StringMethod · 0.45

Tested by 15

TestTemplateVersionFunction · 0.64
benchmarkSetupFunction · 0.64
TestOwnerExecFunction · 0.64
TestRolePermissionsFunction · 0.64
TestAuthorizeDomainFunction · 0.64
TestAuthorizeLevelsFunction · 0.64
TestAuthorizeScopeFunction · 0.64
TestScopeAllowListFunction · 0.64
TestRegoInputValueFunction · 0.64
TestChatsMethod · 0.64