Skip to content

Commit

Permalink
fix factdb role assignments pagination and filters
Browse files Browse the repository at this point in the history
  • Loading branch information
omer9564 committed Dec 6, 2024
1 parent 45147fd commit eaeddf3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion horizon/local/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ async def legacy_list_role_assignments() -> list[RoleAssignment]:
)
return await legacy_list_role_assignments()
else:
res = await policy_store.list_facts_by_type("role_assignments")
res = await policy_store.list_facts_by_type(
"role_assignments",
page=page,
per_page=per_page,
filters=filters,
)
res_json = parse_obj_as(
list[RoleAssignmentFactDBFact], await res.json()
)
Expand Down

0 comments on commit eaeddf3

Please sign in to comment.