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

Method GetBoundarySessionByID

coderd/database/dbauthz/dbauthz.go:2783–2788  ·  view source on GitHub ↗

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

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

2781
2782// TODO (PR #24810): Replace rbac.ResourceAuditLog with dedicated boundary_log resource type.
2783func (q *querier) GetBoundarySessionByID(ctx context.Context, id uuid.UUID) (database.BoundarySession, error) {
2784 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceAuditLog); err != nil {
2785 return database.BoundarySession{}, err
2786 }
2787 return q.db.GetBoundarySessionByID(ctx, id)
2788}
2789
2790func (q *querier) GetChatACLByID(ctx context.Context, id uuid.UUID) (database.GetChatACLByIDRow, error) {
2791 chat, err := q.db.GetChatByID(ctx, id)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected