(ctx context.Context, eligible bool)
| 8241 | } |
| 8242 | |
| 8243 | func (q *querier) UpsertOAuth2GithubDefaultEligible(ctx context.Context, eligible bool) error { |
| 8244 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
| 8245 | return err |
| 8246 | } |
| 8247 | return q.db.UpsertOAuth2GithubDefaultEligible(ctx, eligible) |
| 8248 | } |
| 8249 | |
| 8250 | func (q *querier) UpsertPrebuildsSettings(ctx context.Context, value string) error { |
| 8251 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected