Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def _async_filter_FGA(
}.values()
)
node_to_obj = {
nodeWithScore: check.object
nodeWithScore.id_: check.object
for check, nodeWithScore in zip(all_checks, nodes)
}

Expand All @@ -132,8 +132,8 @@ async def _async_filter_FGA(
return [
node
for node in nodes
if node_to_obj[node] in permissions_map
and permissions_map[node_to_obj[node]]
if node_to_obj[node.id_] in permissions_map
and permissions_map[node_to_obj[node.id_]]
]

async def _aretrieve(self, query_bundle: QueryBundle) -> List[NodeWithScore]:
Expand Down