(ctx context.Context, arg database.GetChatCostSummaryParams)
| 2868 | } |
| 2869 | |
| 2870 | func (q *querier) GetChatCostSummary(ctx context.Context, arg database.GetChatCostSummaryParams) (database.GetChatCostSummaryRow, error) { |
| 2871 | // See GetChatCostPerChat for the authorization rationale. |
| 2872 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceChat.WithOwner(arg.OwnerID.String()).AnyOrganization()); err != nil { |
| 2873 | return database.GetChatCostSummaryRow{}, err |
| 2874 | } |
| 2875 | return q.db.GetChatCostSummary(ctx, arg) |
| 2876 | } |
| 2877 | |
| 2878 | func (q *querier) GetChatDebugLoggingAllowUsers(ctx context.Context) (bool, error) { |
| 2879 | // The allow-users flag is a deployment-wide setting read by any |
nothing calls this directly
no test coverage detected