perf: 授权用户不显示组件用户 (#12664)

Co-authored-by: feng <1304903146@qq.com>
pull/12667/head
fit2bot 2024-02-19 14:48:31 +08:00 committed by GitHub
parent d7b1903fb7
commit dce68cd011
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class AssetPermUserListApi(BaseAssetPermUserOrUserGroupListApi):
def get_queryset(self):
perms = self.get_asset_related_perms()
users = User.objects.filter(
users = User.get_queryset().filter(
Q(assetpermissions__in=perms) | Q(groups__assetpermissions__in=perms)
).distinct()
return users