We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c5896 commit 1870890Copy full SHA for 1870890
im_export/views.py
@@ -6,16 +6,11 @@
6
from rest_framework.response import Response
7
from insuree.apps import InsureeConfig
8
from .services import InsureeImportExportService
9
+from core.views import check_user_rights
10
11
logger = logging.getLogger(__name__)
12
13
-def check_user_rights(rights):
14
- class UserWithRights(IsAuthenticated):
15
- def has_permission(self, request, view):
16
- return super().has_permission(request, view) and request.user.has_perms(rights)
17
-
18
- return UserWithRights
19
20
21
@api_view(["POST"])
0 commit comments