[update] 修改资产导出的permssions

pull/2883/head
ibuler 5 years ago
parent 62689b240b
commit 5562a04f79

@ -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):

Loading…
Cancel
Save