Remove more global refs / state (#7723)
* remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
a0bfd2885d
Коммит
7ed011745a
@@ -159,7 +159,7 @@ func IsUserSignUpAllowed() *model.AppError {
|
||||
}
|
||||
|
||||
func (a *App) IsFirstUserAccount() bool {
|
||||
if SessionCacheLength() == 0 {
|
||||
if a.SessionCacheLength() == 0 {
|
||||
if cr := <-a.Srv.Store.User().GetTotalUsersCount(); cr.Err != nil {
|
||||
l4g.Error(cr.Err)
|
||||
return false
|
||||
|
||||
Ссылка в новой задаче
Block a user