Row level authorization

Hi CUBA team
I have specific needs in authorization management as described below:

I have Entity SalesCentre where associated Entity are CostCentre, Warehouse.
I am using row level authorization by using AccessGroup for SalesCentre. I also want to add constraint to CostCentre not hard coded in constraint but based on the relationship in SalesCentre, is it possible?

Hi,
are user allowed to acces CostCentre and Warehouse directly without fetching SalesCentre? If so, I think there is no way to accomplish your reqs automatically. But, you can use the same constrainst as for SalesCentre - just join it and use the same code. We are having the similar case and using unified constraints with join.