mirror of https://github.com/jumpserver/jumpserver
perf: 允许 web 同时打开
parent
d285daa1c1
commit
312213f1c5
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue