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

Function useActiveVersion

coderd/autobuild/lifecycle_executor.go:717–719  ·  view source on GitHub ↗
(opts dbauthz.TemplateAccessControl, ws database.Workspace)

Source from the content-addressed store, hash-verified

715}
716
717func useActiveVersion(opts dbauthz.TemplateAccessControl, ws database.Workspace) bool {
718 return opts.RequireActiveVersion || ws.AutomaticUpdates == database.AutomaticUpdatesAlways
719}

Callers 1

runOnceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected