diff --git a/lib/web/servers.go b/lib/web/servers.go index bad2b38a6fb21..8babf48dbb1bf 100644 --- a/lib/web/servers.go +++ b/lib/web/servers.go @@ -29,7 +29,6 @@ import ( "github.com/gravitational/teleport/api/types" "github.com/gravitational/teleport/lib/httplib" "github.com/gravitational/teleport/lib/reversetunnelclient" - "github.com/gravitational/teleport/lib/services" "github.com/gravitational/teleport/lib/ui" webui "github.com/gravitational/teleport/lib/web/ui" ) @@ -323,25 +322,6 @@ func (h *Handler) desktopIsActive(w http.ResponseWriter, r *http.Request, p http return desktopIsActive{false}, nil } -func getDatabaseUsersAndNames(accessChecker services.AccessChecker) (dbNames []string, dbUsers []string, err error) { - dbNames, dbUsers, err = accessChecker.CheckDatabaseNamesAndUsers(0, true /* force ttl override*/) - if err != nil { - // if NotFound error: - // This user cannot request database access, has no assigned database names or users - // - // Every other error should be reported upstream. - if !trace.IsNotFound(err) { - return nil, nil, trace.Wrap(err) - } - - // We proceed with an empty list of DBUsers and DBNames - dbUsers = []string{} - dbNames = []string{} - } - - return dbNames, dbUsers, nil -} - type desktopIsActive struct { Active bool `json:"active"` }