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

Method RBACObject

coderd/database/modelmethods.go:223–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221}
222
223func (c ChatFile) RBACObject() rbac.Object {
224 return rbac.ResourceChat.WithID(c.ID).WithOwner(c.OwnerID.String()).InOrg(c.OrganizationID)
225}
226
227func (c GetChatFileMetadataByChatIDRow) RBACObject() rbac.Object {
228 return rbac.ResourceChat.WithID(c.ID).WithOwner(c.OwnerID.String()).InOrg(c.OrganizationID)

Callers

nothing calls this directly

Calls 4

InOrgMethod · 0.80
WithOwnerMethod · 0.80
WithIDMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected