From 7ed011745a544873f40f806f1803cb8a4998ba01 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 26 Oct 2017 14:21:22 -0500 Subject: Remove more global refs / state (#7723) * remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/user.go') diff --git a/api/user.go b/api/user.go index 82796a6a9..e6f3327ba 100644 --- a/api/user.go +++ b/api/user.go @@ -292,7 +292,7 @@ func getInitialLoad(c *Context, w http.ResponseWriter, r *http.Request) { il.TeamMembers = c.Session.TeamMembers } - if app.SessionCacheLength() == 0 { + if c.App.SessionCacheLength() == 0 { // Below is a special case when intializating a new server // Lets check to make sure the server is really empty -- cgit v1.2.3-1-g7c22