(ctx context.Context, arg database.InsertLicenseParams)
| 5627 | } |
| 5628 | |
| 5629 | func (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 | |
| 5636 | func (q *querier) InsertMCPServerConfig(ctx context.Context, arg database.InsertMCPServerConfigParams) (database.MCPServerConfig, error) { |
| 5637 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected