Fix for indexing if project is private
This commit is contained in:
parent
7b0c037529
commit
d93d1091f9
@ -76,9 +76,8 @@ def after_replacing_node(item, original):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
projects_collection = current_app.data.driver.db['projects']
|
projects_collection = current_app.data.driver.db['projects']
|
||||||
project = projects_collection.find_one({'_id': item['project']},
|
project = projects_collection.find_one({'_id': item['project']})
|
||||||
{'is_private': 1})
|
if project.get('is_private', False):
|
||||||
if 'is_private' in project and project['is_private']:
|
|
||||||
# Skip index updating and return
|
# Skip index updating and return
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user