mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
fix calculate connections. exclude view users
This commit is contained in:
@ -2525,7 +2525,10 @@ exports.install = function(server, callbackFunction) {
|
||||
connectionsCount = licenseInfo.connections;
|
||||
}
|
||||
if (connectionsCount) {
|
||||
licenseType = (connectionsCount > connections.length) ? c_LR.Success : c_LR.Connections;
|
||||
const editConnectionsCount = (_.filter(connections, function (el) {
|
||||
return true !== el.isCloseCoAuthoring && el.user.view !== true;
|
||||
})).length;
|
||||
licenseType = (connectionsCount > editConnectionsCount) ? c_LR.Success : c_LR.Connections;
|
||||
}
|
||||
/*if (constants.PACKAGE_TYPE_OS === licenseInfo.packageType && c_LR.Error === licenseType) {
|
||||
licenseType = c_LR.SuccessLimit;
|
||||
|
||||
Reference in New Issue
Block a user