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

Method RBACObject

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

Source from the content-addressed store, hash-verified

366}
367
368func (t Template) RBACObject() rbac.Object {
369 return rbac.ResourceTemplate.WithID(t.ID).
370 InOrg(t.OrganizationID).
371 WithACLUserList(t.UserACL).
372 WithGroupACL(t.GroupACL)
373}
374
375func (t GetFileTemplatesRow) RBACObject() rbac.Object {
376 return rbac.ResourceTemplate.WithID(t.TemplateID).

Callers

nothing calls this directly

Calls 4

WithGroupACLMethod · 0.80
WithACLUserListMethod · 0.80
InOrgMethod · 0.80
WithIDMethod · 0.45

Tested by

no test coverage detected