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

Method RBACObject

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

Source from the content-addressed store, hash-verified

560}
561
562func (m GetOrganizationIDsByMemberIDsRow) RBACObject() rbac.Object {
563 // TODO: This feels incorrect as we are really returning a list of orgmembers.
564 // This return type should be refactored to return a list of orgmembers, not this
565 // special type.
566 return rbac.ResourceUserObject(m.UserID)
567}
568
569func (o Organization) RBACObject() rbac.Object {
570 return rbac.ResourceOrganization.

Callers

nothing calls this directly

Calls 1

ResourceUserObjectFunction · 0.92

Tested by

no test coverage detected