Skip to content

Commit

Permalink
perf(perms): 获取用户所有授权时转换成 list
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxinwen committed Nov 22, 2020
1 parent 0104b94 commit 94b4af9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/perms/utils/asset/user_permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ def get_user_all_assetpermissions_id(user: User):
asset_perms_id = AssetPermission.objects.valid().filter(
Q(users=user) | Q(user_groups__users=user)
).distinct().values_list('id', flat=True)
asset_perms_id = list(asset_perms_id)
return asset_perms_id


Expand Down

0 comments on commit 94b4af9

Please sign in to comment.