removed deprecated can_edit_entity() call