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

Method GetUserCount

coderd/database/dbauthz/dbauthz.go:4681–4686  ·  view source on GitHub ↗
(ctx context.Context, includeSystem bool)

Source from the content-addressed store, hash-verified

4679}
4680
4681func (q *querier) GetUserCount(ctx context.Context, includeSystem bool) (int64, error) {
4682 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {
4683 return 0, err
4684 }
4685 return q.db.GetUserCount(ctx, includeSystem)
4686}
4687
4688func (q *querier) GetUserGroupSpendLimit(ctx context.Context, arg database.GetUserGroupSpendLimitParams) (int64, error) {
4689 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceChat.WithOwner(arg.UserID.String())); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetUserCountMethod · 0.65

Tested by

no test coverage detected