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

Function ctxWithProvisionerPermissions

coderd/coderdtest/coderdtest.go:1819–1823  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1817}
1818
1819func ctxWithProvisionerPermissions(ctx context.Context) context.Context {
1820 // Use system restricted context which has permissions to update provisioner daemons
1821 //nolint: gocritic // We need system context to modify this.
1822 return dbauthz.AsSystemRestricted(ctx)
1823}
1824
1825// UpdateProvisionerLastSeenAt updates the provisioner daemon's LastSeenAt timestamp
1826// to the specified time to prevent it from appearing stale during autobuild operations

Calls 1

AsSystemRestrictedFunction · 0.92

Tested by

no test coverage detected