EditEntityFieldAccessCheck.php in Quick Edit 7
File
includes/EditEntityFieldAccessCheck.php
View source
<?php
module_load_include('php', 'quickedit', 'includes/EditEntityFieldAccessCheckInterface');
class EditEntityFieldAccessCheck implements EditEntityFieldAccessCheckInterface {
public function accessEditEntityField($entity_type, $entity, $field_name) {
$is_extra_field = _quickedit_is_extra_field($entity_type, $field_name);
$entity_access = entity_access('update', $entity_type, $entity);
$field_access = $is_extra_field ? TRUE : field_access('edit', field_info_field($field_name), $entity_type, $entity);
return $entity_access && $field_access;
}
}