feat: 修改 Permission filter 方法名

This commit is contained in:
Jiangjie.Bai
2022-09-23 14:45:09 +08:00
parent 286d0e4ac1
commit 65b942ffa4
2 changed files with 8 additions and 8 deletions

View File

@@ -163,7 +163,7 @@ class UserGrantedAssetAccounts(ListAPIView):
def get_queryset(self):
# 获取用户-资产的授权规则
assetperms = AssetPermission.filter_permissions(self.user, self.asset)
assetperms = AssetPermission.filter(self.user, self.asset)
account_names = AssetPermission.get_account_names(assetperms)
accounts = self.asset.filter_accounts(account_names)
# 构造默认包含的账号,如: @INPUT @USER