mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-26 23:34:26 +00:00
perf(perms): 用户/用户组授权的所有应用API返回attrs属性
This commit is contained in:
@@ -36,7 +36,7 @@ class ApplicationGrantedSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Application
|
||||
only_fields = [
|
||||
'id', 'name', 'domain', 'category', 'type', 'comment', 'org_id'
|
||||
'id', 'name', 'domain', 'category', 'type', 'attrs', 'comment', 'org_id'
|
||||
]
|
||||
fields = only_fields + ['category_display', 'type_display', 'org_name']
|
||||
read_only_fields = fields
|
||||
|
Reference in New Issue
Block a user