MCPcopy Create free account
hub / github.com/coder/coder / UpsertOAuth2GithubDefaultEligible

Method UpsertOAuth2GithubDefaultEligible

coderd/database/dbauthz/dbauthz.go:8243–8248  ·  view source on GitHub ↗
(ctx context.Context, eligible bool)

Source from the content-addressed store, hash-verified

8241}
8242
8243func (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
8250func (q *querier) UpsertPrebuildsSettings(ctx context.Context, value string) error {
8251 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected