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

Method UpsertMCPServerUserToken

coderd/database/dbauthz/dbauthz.go:8222–8227  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpsertMCPServerUserTokenParams)

Source from the content-addressed store, hash-verified

8220}
8221
8222func (q *querier) UpsertMCPServerUserToken(ctx context.Context, arg database.UpsertMCPServerUserTokenParams) (database.MCPServerUserToken, error) {
8223 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8224 return database.MCPServerUserToken{}, err
8225 }
8226 return q.db.UpsertMCPServerUserToken(ctx, arg)
8227}
8228
8229func (q *querier) UpsertNotificationReportGeneratorLog(ctx context.Context, arg database.UpsertNotificationReportGeneratorLogParams) error {
8230 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected