mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 15:37:19 +00:00
perf: 允许 web 同时打开
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user