MM-40813: Use config service more extensively (#19679)
https://mattermost.atlassian.net/browse/MM-40816 ```release-note NONE ``` Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
cf6aa85d28
Коммит
a2fc602bc2
@@ -255,7 +255,7 @@ func (a *App) UpdateLastActivityAtIfNeeded(session model.Session) {
|
||||
// A new ExpiresAt is only written if enough time has elapsed since last update.
|
||||
// Returns true only if the session was extended.
|
||||
func (a *App) ExtendSessionExpiryIfNeeded(session *model.Session) bool {
|
||||
if !*a.Srv().Config().ServiceSettings.ExtendSessionLengthWithActivity {
|
||||
if !*a.Config().ServiceSettings.ExtendSessionLengthWithActivity {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user