mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 15:37:19 +00:00
perf: 更新发布机的单用户单会话策略
This commit is contained in:
@@ -194,7 +194,7 @@ class Applet(JMSBaseModel):
|
||||
host = self.select_host(user)
|
||||
if not host:
|
||||
return None
|
||||
host_concurrent = str(host.deploy_options.get('RDS_fSingleSessionPerUser', 0)) == '1'
|
||||
host_concurrent = str(host.deploy_options.get('RDS_fSingleSessionPerUser', 0)) == '0'
|
||||
can_concurrent = (self.can_concurrent or self.type == 'web') and host_concurrent
|
||||
|
||||
accounts = host.accounts.all().filter(is_active=True, privileged=False)
|
||||
|
Reference in New Issue
Block a user