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

Method GetUserAISeatStates

coderd/database/dbauthz/dbauthz.go:4560–4565  ·  view source on GitHub ↗
(ctx context.Context, userIDs []uuid.UUID)

Source from the content-addressed store, hash-verified

4558}
4559
4560func (q *querier) GetUserAISeatStates(ctx context.Context, userIDs []uuid.UUID) ([]uuid.UUID, error) {
4561 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceAiSeat); err != nil {
4562 return nil, err
4563 }
4564 return q.db.GetUserAISeatStates(ctx, userIDs)
4565}
4566
4567func (q *querier) GetUserActivityInsights(ctx context.Context, arg database.GetUserActivityInsightsParams) ([]database.GetUserActivityInsightsRow, error) {
4568 // Used by insights endpoints. Need to check both for auditors and for regular users with template acl perms.

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetUserAISeatStatesMethod · 0.65

Tested by

no test coverage detected