Unverified Commit 4fbb4c60 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #2824 from jumpserver/dev_bai

[Bugfix] 修复资产没有管理用户时获取connectivity字段失败的bug
parents 9a5c00e1 d563216e
......@@ -250,6 +250,8 @@ class Asset(OrgModelMixin):
@property
def connectivity(self):
if not self.admin_user:
return self.UNKNOWN
return self.admin_user.get_connectivity_of(self)
@connectivity.setter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment