How to hide other user created warehouse from ware house tree

I created a custom role named warehouse keeper.this user can create warehouse. so i created a permission for warehouse keeper. in roles and permission manager i checked is user checkbox so that only warehouse keeper can see warehouses that are created by him and it is working as it expected.but when go to warehouse tree page warehouse user can see warehouses which are not created by him.

Hi,

On the Warehouse master, you should apply restriction based on Warehouse (if Warehouse), and not based on User.

And then in the User Permissions, create User for exact Warehouse.

User A = Warehouse = Warehouse 1

Hope this helps.