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

Method RBACObject

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

Source from the content-addressed store, hash-verified

144}
145
146func (w ConnectionLog) RBACObject() rbac.Object {
147 obj := rbac.ResourceConnectionLog.WithID(w.ID)
148 if w.OrganizationID != uuid.Nil {
149 obj = obj.InOrg(w.OrganizationID)
150 }
151
152 return obj
153}
154
155// TaskTable converts a Task to it's reduced version.
156// A more generalized solution is to use json marshaling to

Callers

nothing calls this directly

Calls 2

InOrgMethod · 0.80
WithIDMethod · 0.45

Tested by

no test coverage detected