MCPcopy Create free account
hub / github.com/coder/coder / ListBoundaryLogsBySessionID

Method ListBoundaryLogsBySessionID

coderd/database/dbauthz/dbauthz.go:6185–6190  ·  view source on GitHub ↗

TODO (PR #24810): Replace rbac.ResourceAuditLog with dedicated boundary_log resource type.

(ctx context.Context, arg database.ListBoundaryLogsBySessionIDParams)

Source from the content-addressed store, hash-verified

6183
6184// TODO (PR #24810): Replace rbac.ResourceAuditLog with dedicated boundary_log resource type.
6185func (q *querier) ListBoundaryLogsBySessionID(ctx context.Context, arg database.ListBoundaryLogsBySessionIDParams) ([]database.BoundaryLog, error) {
6186 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceAuditLog); err != nil {
6187 return nil, err
6188 }
6189 return q.db.ListBoundaryLogsBySessionID(ctx, arg)
6190}
6191
6192func (q *querier) ListChatUsageLimitGroupOverrides(ctx context.Context) ([]database.ListChatUsageLimitGroupOverridesRow, error) {
6193 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected