Disable share units in allies window?

I want players to be allied but not be able to share units in my campaign coop map. Any ideas how to make the “share unit control” in allies window grayed out? Thanks.