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

Method OverrideSQLFilter

coderd/coderdtest/authorize.go:385–388  ·  view source on GitHub ↗

OverrideSQLFilter sets the SQL filter that will always be returned by CompileToSQL.

(filter string)

Source from the content-addressed store, hash-verified

383
384// OverrideSQLFilter sets the SQL filter that will always be returned by CompileToSQL.
385func (d *FakeAuthorizer) OverrideSQLFilter(filter string) *FakeAuthorizer {
386 d.sqlFilter = filter
387 return d
388}
389
390func (d *FakeAuthorizer) Authorize(ctx context.Context, subject rbac.Subject, action policy.Action, object rbac.Object) error {
391 if d.ConditionalReturn != nil {

Callers 1

Calls

no outgoing calls

Tested by 1