mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-20 06:08:35 +02:00
Added throttle to pdfcredentials view
This commit is contained in:
@@ -9,6 +9,7 @@ from rest_framework import permissions
|
||||
from rest_framework.views import APIView
|
||||
|
||||
from modoboa.admin.models import Domain
|
||||
from modoboa.lib.throttle import UserLesserDdosUser
|
||||
|
||||
from .serializers import GetAccountCredentialsSerializer
|
||||
|
||||
@@ -22,6 +23,7 @@ class PDFCredentialView(APIView):
|
||||
)
|
||||
|
||||
serializer_class = GetAccountCredentialsSerializer
|
||||
throttle_classes = [UserLesserDdosUser]
|
||||
|
||||
def get_queryset(self):
|
||||
"""Filter queryset based on current user."""
|
||||
|
||||
Reference in New Issue
Block a user