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

Method InsertLicense

coderd/database/dbauthz/dbauthz.go:5629–5634  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertLicenseParams)

Source from the content-addressed store, hash-verified

5627}
5628
5629func (q *querier) InsertLicense(ctx context.Context, arg database.InsertLicenseParams) (database.License, error) {
5630 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceLicense); err != nil {
5631 return database.License{}, err
5632 }
5633 return q.db.InsertLicense(ctx, arg)
5634}
5635
5636func (q *querier) InsertMCPServerConfig(ctx context.Context, arg database.InsertMCPServerConfigParams) (database.MCPServerConfig, error) {
5637 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
InsertLicenseMethod · 0.65

Tested by

no test coverage detected