fix(perms): 未激活资产不能使用

This commit is contained in:
xinwen
2020-10-13 15:50:11 +08:00
committed by 老广
parent ef86a49c1e
commit 459c5c07c9
2 changed files with 2 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ class AssetGrantedSerializer(serializers.ModelSerializer):
model = Asset
only_fields = [
"id", "hostname", "ip", "protocols", "os", 'domain',
"platform", "comment", "org_id",
"platform", "comment", "org_id", "is_active"
]
fields = only_fields + ['org_name']
read_only_fields = fields