+ // If the user is allowed to edit the field, it is always safe to set the
+ // received value. We may be setting an unchanged value, but that is ok.
+ $field_edit_access = $original_field->access('edit', NULL, TRUE);
+ if ($field_edit_access->isAllowed()) {
+ return TRUE;
+ }
+