mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-10 03:39:59 +00:00
perf: 优化资产授权规则过滤支持 accounts
This commit is contained in:
@@ -72,6 +72,10 @@ class AssetPermissionSerializer(BulkOrgResourceModelSerializer):
|
||||
return
|
||||
actions.default = list(actions.choices.keys())
|
||||
|
||||
@staticmethod
|
||||
def validate_accounts(accounts):
|
||||
return list(set(accounts))
|
||||
|
||||
@classmethod
|
||||
def setup_eager_loading(cls, queryset):
|
||||
"""Perform necessary eager loading of data."""
|
||||
|
Reference in New Issue
Block a user