Commit 98260b5b authored by BaiJiangJie's avatar BaiJiangJie

[Update] 修改用户授权资产API返回的queryset

parent 9a3065ad
...@@ -158,7 +158,7 @@ class UserGrantedAssetsApi(UserPermissionCacheMixin, AssetsFilterMixin, ListAPIV ...@@ -158,7 +158,7 @@ class UserGrantedAssetsApi(UserPermissionCacheMixin, AssetsFilterMixin, ListAPIV
system_user.actions = actions system_user.actions = actions
system_users_granted.append(system_user) system_users_granted.append(system_user)
asset.system_users_granted = system_users_granted asset.system_users_granted = system_users_granted
queryset.append(system_users_granted) queryset.append(asset)
return queryset return queryset
def get_permissions(self): def get_permissions(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment