diff options
Diffstat (limited to 'pkg/authz')
| -rw-r--r-- | pkg/authz/server.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/authz/server.go b/pkg/authz/server.go index 4ab7c17..c54077b 100644 --- a/pkg/authz/server.go +++ b/pkg/authz/server.go @@ -37,7 +37,7 @@ func New(ctx context.Context, options ...grpc.ServerOption) *Server { func authorizationServiceFor(ctx context.Context) auth.AuthorizationServer { connection := Connection.From(ctx) - svcs := []auth.AuthorizationServer{} + svcs := []auth.AuthorizationServer{NewLocalCheckService()} if x.IsPresent(connection) { pls.LogNow(ctx, log.Fields{"authzd": map[string]string{ "target": connection.CanonicalTarget(), @@ -45,6 +45,5 @@ func authorizationServiceFor(ctx context.Context) auth.AuthorizationServer { }}) svcs = append(svcs, NewRemoteCheckService(auth.NewAuthorizationClient(connection))) } - svcs = append(svcs, NewLocalCheckService()) return NewCheckService(svcs) } |
