(ctx context.Context, includeSystem bool)
| 4679 | } |
| 4680 | |
| 4681 | func (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 | |
| 4688 | func (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 { |
nothing calls this directly
no test coverage detected