Commit 5562a04f authored by ibuler's avatar ibuler

[update] 修改资产导出的permssions

parent 62689b24
......@@ -108,10 +108,7 @@ class AssetUserViewSet(IDInCacheFilterMixin, BulkModelViewSet):
class AssetUserExportViewSet(AssetUserViewSet):
serializer_class = serializers.AssetUserExportSerializer
http_method_names = ['get']
def get_permissions(self):
self.permission_classes.append(NeedMFAVerify)
return super().get_permissions()
permission_classes = [IsOrgAdminOrAppUser, NeedMFAVerify]
class AssetUserAuthInfoApi(generics.RetrieveAPIView):
......
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