diff --git a/HISTORY.rst b/HISTORY.rst index 7b8f360785..4da7df2e5e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -26,6 +26,7 @@ * Remove newlines from the rendered templates. * Reject emails attachments of size 0. Thanks to Robert Schoeftner (@robert.schoeftner)for the report and solution. GitLab issue #574. +* Add missing document index API view create permission. 3.1.9 (2018-11-01) ================== diff --git a/mayan/apps/document_indexing/api_views.py b/mayan/apps/document_indexing/api_views.py index a9592e4648..1dea00853e 100644 --- a/mayan/apps/document_indexing/api_views.py +++ b/mayan/apps/document_indexing/api_views.py @@ -29,6 +29,7 @@ class APIIndexListView(generics.ListCreateAPIView): filter_backends = (MayanObjectPermissionsFilter,) mayan_object_permissions = {'GET': (permission_document_indexing_view,)} mayan_view_permissions = {'POST': (permission_document_indexing_create,)} + permission_classes = (MayanPermission,) queryset = Index.objects.all() serializer_class = IndexSerializer