Commit 0e22e146 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Merge branch 'fix-avs-bidictionaries-37' into 'microservices'

Do not use permission limit when query to dictionaries datasource

See merge request !236
parents 917cc910 03e45a5f
Pipeline #2847 passed with stage
in 1 minute and 45 seconds
......@@ -206,6 +206,8 @@ class Model(six.with_metaclass(ModelBase)):
"""
if not user or user.is_superuser:
return query # No restrictions
if query["datasource"].startswith("dictionaries."):
return query # To dictionaries
# Get user domains
domains = UserAccess.get_domains(user)
# Resolve domains against dict
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment