diff --git a/field_permissions.module b/field_permissions.module index 112340b..5e4ab56 100644 --- a/field_permissions.module +++ b/field_permissions.module @@ -259,7 +259,9 @@ function _field_permissions_entity_is_owned_by_account($entity, $account) { // a concept of "ownership"), we need to assume that the provided user // account does not own it. $uid = isset($entity->uid) ? $entity->uid : FALSE; - drupal_alter('field_permissions_userid_' . $entity->entityType(), $uid, $entity); + if(method_exists($entity, 'entityType')) { + drupal_alter('field_permissions_userid_' . $entity->entityType(), $uid, $entity); + } return $uid == $account->uid; }