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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user