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

Method InsertDeploymentID

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

Source from the content-addressed store, hash-verified

5593}
5594
5595func (q *querier) InsertDeploymentID(ctx context.Context, value string) error {
5596 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceSystem); err != nil {
5597 return err
5598 }
5599 return q.db.InsertDeploymentID(ctx, value)
5600}
5601
5602func (q *querier) InsertExternalAuthLink(ctx context.Context, arg database.InsertExternalAuthLinkParams) (database.ExternalAuthLink, error) {
5603 return insertWithAction(q.log, q.auth, rbac.ResourceUser.WithID(arg.UserID).WithOwner(arg.UserID.String()), policy.ActionUpdatePersonal, q.db.InsertExternalAuthLink)(ctx, arg)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
InsertDeploymentIDMethod · 0.65

Tested by

no test coverage detected