(ctx context.Context, arg database.GetProvisionerLogsAfterIDParams)
| 4123 | } |
| 4124 | |
| 4125 | func (q *querier) GetProvisionerLogsAfterID(ctx context.Context, arg database.GetProvisionerLogsAfterIDParams) ([]database.ProvisionerJobLog, error) { |
| 4126 | // Authorized read on job lets the actor also read the logs. |
| 4127 | _, err := q.GetProvisionerJobByID(ctx, arg.JobID) |
| 4128 | if err != nil { |
| 4129 | return nil, err |
| 4130 | } |
| 4131 | return q.db.GetProvisionerLogsAfterID(ctx, arg) |
| 4132 | } |
| 4133 | |
| 4134 | func (q *querier) GetQuotaAllowanceForUser(ctx context.Context, params database.GetQuotaAllowanceForUserParams) (int64, error) { |
| 4135 | err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceUserObject(params.UserID)) |
nothing calls this directly
no test coverage detected