BUG: Query: `... WITH reference_propert = <id>` broken when referenced entity is not readable.

Summary

A query like FIND readable_entity WITH reference_property = <id> should return any readable entity which references the entity with the id "" regardless of the entity permissions for the referenced entity, because the id is readable just because it is the value of the property "reference_property" of the "readable_entity"

Expected Behavior

This line should pass: https://gitlab.com/linkahead/linkahead-pyinttest/-/blob/ba6929c74daf44b2f9f8d7b911661caab00fbbc9/tests/test_permissions.py#L245

Actual Behavior

It doesn't. The result is filtered away because the referenced entity is not readable.

Specifications

  • Version: Server >v0.12.0
Edited by Timm Fitschen