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

Function Recorder

coderd/rbac/authz.go:834–836  ·  view source on GitHub ↗

Recorder returns an Authorizer that records any authorization checks made on the Context provided for the authorization check. Requires using the RecordAuthzChecks middleware.

(authz Authorizer)

Source from the content-addressed store, hash-verified

832//
833// Requires using the RecordAuthzChecks middleware.
834func Recorder(authz Authorizer) Authorizer {
835 return &authRecorder{authz: authz}
836}
837
838func (c *authRecorder) Authorize(ctx context.Context, subject Subject, action policy.Action, object Object) error {
839 err := c.authz.Authorize(ctx, subject, action, object)

Callers 2

NewFunction · 0.92
NewFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected