Unverified Commit a8af4e88 authored by 老广's avatar 老广 Committed by GitHub

Perm for assets (#3002)

* [Update] 授权显示节点下所有的资产

* [Update] 修改返回资产的comment
parent 8f5e91bc
......@@ -44,7 +44,7 @@ class AssetGrantedSerializer(serializers.ModelSerializer):
model = Asset
only_fields = [
"id", "hostname", "ip", "protocols", "os", 'domain',
"platform", "org_id",
"platform", "comment", "org_id",
]
fields = only_fields + ['system_users_granted', 'system_users_join', "org_name"]
read_only_fields = fields
......
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