perf: 允许 web 同时打开

pull/10596/head^2
ibuler 2023-05-30 17:54:28 +08:00 committed by Jiangjie.Bai
parent d285daa1c1
commit 312213f1c5
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class Applet(JMSBaseModel):
host = self.select_host(user) host = self.select_host(user)
if not host: if not host:
return None return None
can_concurrent = self.can_concurrent and self.type == 'general' can_concurrent = self.can_concurrent or self.type == 'web'
accounts = host.accounts.all().filter(is_active=True, privileged=False) accounts = host.accounts.all().filter(is_active=True, privileged=False)
private_account = accounts.filter(username='js_{}'.format(user.username)).first() private_account = accounts.filter(username='js_{}'.format(user.username)).first()