From a196205593f495937bc380210c7a47a9a34a9619 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 3 Apr 2019 16:50:44 -0400 Subject: [PATCH] Add missing index API view create permission Signed-off-by: Roberto Rosario --- HISTORY.rst | 1 + mayan/apps/document_indexing/api_views.py | 1 + 2 files changed, 2 insertions(+) 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