Quick hack to get /p/{url}/jstree working again

Apparently Eve is now stricter in checking against MONGO_QUERY_BLACKLIST,
and blocks our use of $regex when getting child nodes. See
`jstree.py::jstree_get_children()`
This commit is contained in:
2018-08-30 13:56:53 +02:00
parent f6fd9228e5
commit 2ad5b20880
2 changed files with 14 additions and 0 deletions

View File

@@ -828,3 +828,8 @@ X_DOMAINS = '*'
X_ALLOW_CREDENTIALS = True
X_HEADERS = 'Authorization'
RENDERERS = ['eve.render.JSONRenderer']
# TODO(Sybren): this is a quick workaround to make /p/{url}/jstree work again.
# Apparently Eve is now stricter in checking against MONGO_QUERY_BLACKLIST, and
# blocks our use of $regex.
MONGO_QUERY_BLACKLIST = ['$where']