prevent editing of entities out of doamin