LPS-49818 we need to check permission on the target layout, not the current one