From 0ea79aabbde9b51520dc8d0310c3ac0ad14148eb Mon Sep 17 00:00:00 2001
From: Bram Goffings <bramgoffings@gmail.com>
Date: Sat, 10 Mar 2012 15:18:32 +0100
Subject: [PATCH] Return true when no entity access information available

---
 uuid_services/uuid_services.module |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/uuid_services/uuid_services.module b/uuid_services/uuid_services.module
index a34628d..ef4c3e9 100644
--- a/uuid_services/uuid_services.module
+++ b/uuid_services/uuid_services.module
@@ -182,8 +182,15 @@ function _uuid_services_entity_access($op, $args) {
     if (($entity_type == 'taxonomy_term' || $entity_type == 'comment') && $op == 'update') {
       $op = 'edit';
     }
+
     $return = entity_access($op, $entity_type, $entity);
-    return $return;
+    if (!empty($return)) {
+      return $return;
+    }
+    else {
+      // When there is no entity access information available, return true.
+      return true;
+    }
   }
   catch (Exception $exception) {
     watchdog_exception('uuid_services', $exception);
-- 
1.7.5.4

