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

Method RBACObject

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

Source from the content-addressed store, hash-verified

131}
132
133func (w AuditLog) RBACObject() rbac.Object {
134 obj := rbac.ResourceAuditLog.WithID(w.ID)
135 if w.OrganizationID != uuid.Nil {
136 obj = obj.InOrg(w.OrganizationID)
137 }
138
139 return obj
140}
141
142func (w GetConnectionLogsOffsetRow) RBACObject() rbac.Object {
143 return w.ConnectionLog.RBACObject()

Callers

nothing calls this directly

Calls 2

InOrgMethod · 0.80
WithIDMethod · 0.45

Tested by

no test coverage detected