We should rewrite permission check function check_user_merge_permissions() to use better more modern ACL mechanisms, e.g. by using acl_check_if() method of the request context (see query.py) or by using direct ACL check via acl_check_direct() from acl.py.
Users report errors when attempting to merge lexical entries and get merge suggestions in https://lingvodoc.ispras.ru/dictionary/7476/2/perspective/8015/2/edit:
Looks like the problem is at the https://github.com/ispras/lingvodoc/blob/heavy_refactor/lingvodoc/views/v2/merge.py#L528, when we are checking perspective permissions via requesting the refactored out route 'perspective_roles'.
We should rewrite permission check function
check_user_merge_permissions()
to use better more modern ACL mechanisms, e.g. by usingacl_check_if()
method of the request context (see query.py) or by using direct ACL check viaacl_check_direct()
from acl.py.