(ctx context.Context, arg database.GetUserSecretByUserIDAndNameParams)
| 4747 | } |
| 4748 | |
| 4749 | func (q *querier) GetUserSecretByUserIDAndName(ctx context.Context, arg database.GetUserSecretByUserIDAndNameParams) (database.UserSecret, error) { |
| 4750 | obj := rbac.ResourceUserSecret.WithOwner(arg.UserID.String()) |
| 4751 | if err := q.authorizeContext(ctx, policy.ActionRead, obj); err != nil { |
| 4752 | return database.UserSecret{}, err |
| 4753 | } |
| 4754 | |
| 4755 | return q.db.GetUserSecretByUserIDAndName(ctx, arg) |
| 4756 | } |
| 4757 | |
| 4758 | func (q *querier) GetUserSecretsTelemetrySummary(ctx context.Context) (database.GetUserSecretsTelemetrySummaryRow, error) { |
| 4759 | // Telemetry queries are called from system contexts only. The |
nothing calls this directly
no test coverage detected