Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/df177b47524c0f7c5df21f32ebeaba5576d3f8a4 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Revert "Implement better count method"

This reverts commit 5aa519fd39.
pull/4269/head
Joshua M. Boniface 5 years ago
parent 5aa519fd39
commit df177b4752

@ -1484,7 +1484,7 @@ namespace Emby.Server.Implementations.Session
throw new SecurityException("User is not allowed access from this device.");
}
int sessionsCount = Sessions.Count(i => string.Equals(i.UserId, user.Id, StringComparison.OrdinalIgnoreCase));
int sessionsCount = Sessions.Where(i => string.Equals(i.UserId, user.Id)).ToList().Count;
int maxActiveSessions = user.MaxActiveSessions;
_logger.LogInformation("Current/Max sessions for user {User}: {Sessions}/{Max}", user.Username, sessionsCount, maxActiveSessions);
if (maxActiveSessions >= 1 && sessionsCount >= maxActiveSessions)

Loading…
Cancel
Save