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

Method AnyOrganization

coderd/rbac/object.go:190–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188}
189
190func (z Object) AnyOrganization() Object {
191 return Object{
192 ID: z.ID,
193 Owner: z.Owner,
194 // AnyOrgOwner cannot have an org owner also set.
195 OrgID: "",
196 Type: z.Type,
197 ACLUserList: z.ACLUserList,
198 ACLGroupList: z.ACLGroupList,
199 AnyOrgOwner: true,
200 }
201}
202
203// WithOwner adds an OwnerID to the resource
204func (z Object) WithOwner(ownerID string) Object {

Callers 9

NewFunction · 0.80
templateExamplesMethod · 0.80
TestRolePermissionsFunction · 0.80
TestAuthorizeDomainFunction · 0.80
GetChatCostPerChatMethod · 0.80
GetChatCostPerModelMethod · 0.80
GetChatCostSummaryMethod · 0.80
TestChatsMethod · 0.80
authorizeRequestMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestRolePermissionsFunction · 0.64
TestAuthorizeDomainFunction · 0.64
TestChatsMethod · 0.64