mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 08:55:40 +00:00
[Update] 获取用户授权资产时只返回资产协议支持的系统用户
This commit is contained in:
@@ -174,6 +174,8 @@ class GrantAssetsMixin(LabelFilterMixin):
|
||||
system_user = system_users_map.get(sid)
|
||||
if not system_user:
|
||||
continue
|
||||
if not asset.has_protocol(system_user.protocol):
|
||||
continue
|
||||
system_user.actions = action
|
||||
system_users_granted.append(system_user)
|
||||
asset.system_users_granted = system_users_granted
|
||||
|
Reference in New Issue
Block a user