MCPcopy Index your code
hub / github.com/coder/coder / UpsertNotificationsSettings

Method UpsertNotificationsSettings

coderd/database/dbauthz/dbauthz.go:8236–8241  ·  view source on GitHub ↗
(ctx context.Context, value string)

Source from the content-addressed store, hash-verified

8234}
8235
8236func (q *querier) UpsertNotificationsSettings(ctx context.Context, value string) error {
8237 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8238 return err
8239 }
8240 return q.db.UpsertNotificationsSettings(ctx, value)
8241}
8242
8243func (q *querier) UpsertOAuth2GithubDefaultEligible(ctx context.Context, eligible bool) error {
8244 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