mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复动态系统用户登录windows的bug
parent
3afb8647bd
commit
02a901467b
|
@ -158,6 +158,12 @@ class SystemUser(BaseUser):
|
||||||
def can_perm_to_asset(self):
|
def can_perm_to_asset(self):
|
||||||
return self.protocol not in [self.PROTOCOL_MYSQL]
|
return self.protocol not in [self.PROTOCOL_MYSQL]
|
||||||
|
|
||||||
|
def load_asset_special_auth(self, asset=None, username=None):
|
||||||
|
instance = super().load_asset_special_auth(asset=asset, username=username)
|
||||||
|
if self.username_same_with_user:
|
||||||
|
instance.username = username
|
||||||
|
return instance
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def cmd_filter_rules(self):
|
def cmd_filter_rules(self):
|
||||||
from .cmd_filter import CommandFilterRule
|
from .cmd_filter import CommandFilterRule
|
||||||
|
|
Loading…
Reference in New Issue