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

Method UsageEventExistsByID

coderd/database/dbauthz/dbauthz.go:8414–8419  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

8412}
8413
8414func (q *querier) UsageEventExistsByID(ctx context.Context, id string) (bool, error) {
8415 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceUsageEvent); err != nil {
8416 return false, err
8417 }
8418 return q.db.UsageEventExistsByID(ctx, id)
8419}
8420
8421func (q *querier) ValidateGroupIDs(ctx context.Context, groupIDs []uuid.UUID) (database.ValidateGroupIDsRow, error) {
8422 // This check is probably overly restrictive, but the "correct" check isn't

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
UsageEventExistsByIDMethod · 0.65

Tested by

no test coverage detected