From afb44798e09db84d6f80875826182bef18cb6389 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 4 May 2016 00:08:44 -0400 Subject: [PATCH] Parent object of the index node being passed to the ACL module for permission test was a function by mistake and not the result of the function which is the index isntance. Fixes Gitlab issue #268 @bat79a --- mayan/apps/document_indexing/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/document_indexing/views.py b/mayan/apps/document_indexing/views.py index 97c3d0a76f..586a49f7a5 100644 --- a/mayan/apps/document_indexing/views.py +++ b/mayan/apps/document_indexing/views.py @@ -251,7 +251,7 @@ class IndexInstanceNodeView(DocumentListView): except PermissionDenied: AccessControlList.objects.check_access( permission_document_indexing_view, - request.user, self.index_instance.index + request.user, self.index_instance.index() ) if self.index_instance: