fix: 修复用户页面点击资产树节点提示对象找不到的问题

pull/7677/head
Jiangjie.Bai 3 years ago committed by Jiangjie.Bai
parent 02d3747c70
commit 64f721875b

@ -40,3 +40,7 @@ class RoleUserMixin(PermBaseMixin, _RoleUserMixin):
def get(self, request, *args, **kwargs):
with tmp_to_root_org():
return super().get(request, *args, **kwargs)
def get_queryset(self):
with tmp_to_root_org():
return super().get_queryset()

@ -85,15 +85,15 @@ class MyAllAssetsAsTreeApi(UserAllGrantedAssetsQuerysetMixin,
pass
class UserGrantedNodeAssetsForAdminApi(UserGrantedNodeAssetsMixin,
RoleAdminMixin,
class UserGrantedNodeAssetsForAdminApi(RoleAdminMixin,
UserGrantedNodeAssetsMixin,
AssetsSerializerFormatMixin,
ListAPIView):
pass
class MyGrantedNodeAssetsApi(UserGrantedNodeAssetsMixin,
RoleUserMixin,
class MyGrantedNodeAssetsApi(RoleUserMixin,
UserGrantedNodeAssetsMixin,
AssetsSerializerFormatMixin,
ListAPIView):
pass

Loading…
Cancel
Save