Files: Settings: removed socket url for anonymous if there is no token in request

This commit is contained in:
Maksim Chegulov 2023-07-25 18:36:31 +03:00
parent a1a2d5aa4a
commit ca8c144080

View File

@ -157,7 +157,7 @@ public class SettingsController : BaseSettingsController
CookieSettingsEnabled = tenantCookieSettings.Enabled
};
if (!_authContext.IsAuthenticated && (await _externalShare.GetSessionIdAsync() != default || await _externalShare.GetLinkIdAsync() != default))
if (!_authContext.IsAuthenticated && await _externalShare.GetLinkIdAsync() != default)
{
settings.SocketUrl = _configuration["web:hub:url"] ?? "";
}