diff --git a/cmd/sourcegraph/osscmd/BUILD.bazel b/cmd/sourcegraph/osscmd/BUILD.bazel index c4f2eb10cb4..404b41ddd5a 100644 --- a/cmd/sourcegraph/osscmd/BUILD.bazel +++ b/cmd/sourcegraph/osscmd/BUILD.bazel @@ -6,7 +6,6 @@ go_library( importpath = "github.com/sourcegraph/sourcegraph/cmd/sourcegraph/osscmd", visibility = ["//visibility:public"], deps = [ - "//internal/authz", "//internal/service", "//internal/service/svcmain", ], diff --git a/cmd/sourcegraph/osscmd/osscmd.go b/cmd/sourcegraph/osscmd/osscmd.go index e459055cdf9..9c6ee957a07 100644 --- a/cmd/sourcegraph/osscmd/osscmd.go +++ b/cmd/sourcegraph/osscmd/osscmd.go @@ -3,18 +3,11 @@ package osscmd import ( - "github.com/sourcegraph/sourcegraph/internal/authz" "github.com/sourcegraph/sourcegraph/internal/service" "github.com/sourcegraph/sourcegraph/internal/service/svcmain" ) -var config = svcmain.Config{ - AfterConfigure: func() { - // Set dummy authz provider to unblock channel for checking permissions in GraphQL APIs. - // See https://github.com/sourcegraph/sourcegraph/issues/3847 for details. - authz.SetProviders(true, []authz.Provider{}) - }, -} +var config = svcmain.Config{} // MainOSS is called from the `main` function of the `cmd/sourcegraph` command. func MainOSS(services []service.Service, args []string) {