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

Method RBACObject

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

Source from the content-addressed store, hash-verified

361}
362
363func (k APIKey) RBACObject() rbac.Object {
364 return rbac.ResourceApiKey.WithIDString(k.ID).
365 WithOwner(k.UserID.String())
366}
367
368func (t Template) RBACObject() rbac.Object {
369 return rbac.ResourceTemplate.WithID(t.ID).

Callers

nothing calls this directly

Calls 3

WithOwnerMethod · 0.80
WithIDStringMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected