mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-24 14:02:01 +00:00
Perm for assets (#3002)
* [Update] 授权显示节点下所有的资产 * [Update] 修改返回资产的comment
This commit is contained in:
parent
8f5e91bc34
commit
a8af4e8804
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user