Multi Company Report problem

Greetings to all
This is my first post in the forum, please help.
Erpnext has been set up on multiple companies and gives the user the authority of a specific company
When a user enters a report ( Customer Ledger Summary or Supplier Ledger Summary)The default company appears in the system and the accounts of customers and suppliers appear, how can these accounts be blocked and which companies are allowed to be shown by the user
If the default company has been removed from Global Defaults, do I need to modify this report .py?

You may use User Permissions to restrict a user to a particular Company.