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

This commit is contained in:
Roberto Rosario
2016-05-04 00:08:44 -04:00
parent a179a19749
commit afb44798e0

View File

@@ -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: