diff --git a/entityreference.module b/entityreference.module
index 381670a..44506a7 100644
--- a/entityreference.module
+++ b/entityreference.module
@@ -1024,7 +1024,7 @@ function entityreference_autocomplete_callback_get_matches($type, $field, $insta
   $entity = NULL;
   if ($entity_id !== 'NULL') {
     $entity = entity_load_single($entity_type, $entity_id);
-    if (!$entity || !entity_access('view', $entity_type, $entity)) {
+    if (!$entity || entity_access('view', $entity_type, $entity) === FALSE) {
       return MENU_ACCESS_DENIED;
     }
   }
@@ -1194,7 +1194,7 @@ function entityreference_field_formatter_prepare_view($entity_type, $entities, $
         // Replace the instance value with the term data.
         $items[$id][$delta]['entity'] = $target_entities[$item['target_id']];
         // Check whether the user has access to the referenced entity.
-        $items[$id][$delta]['access'] = entity_access('view', $field['settings']['target_type'], $target_entities[$item['target_id']]);
+        $items[$id][$delta]['access'] = entity_access('view', $field['settings']['target_type'], $target_entities[$item['target_id']]) !== FALSE;
       }
       // Otherwise, unset the instance value, since the entity does not exist.
       else {
