mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Do not use sessionidle for viewer
This commit is contained in:
committed by
Sergey Konovalov
parent
9b0884965d
commit
c9a2cfc382
@ -3362,7 +3362,7 @@ exports.install = function(server, callbackFunction) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (cfgExpSessionIdle > 0) {
|
||||
if (cfgExpSessionIdle > 0 && !conn.user?.view) {
|
||||
if (maxMs - conn.sessionTimeLastAction > cfgExpSessionIdle && !conn.sessionIsSendWarning) {
|
||||
conn.sessionIsSendWarning = true;
|
||||
sendDataSession(ctx, conn, {
|
||||
|
||||
Reference in New Issue
Block a user