You are here

function services_entity_test_access in Services Entity API 7.2

Implements callback_entity_info_access().

1 string reference to 'services_entity_test_access'
services_entity_test_entity_info in tests/services_entity_test/services_entity_test.module
Implements hook_entity_info().

File

tests/services_entity_test/services_entity_test.module, line 48
services_entity_test.module Provides a test entity type for the services entity tests.

Code

function services_entity_test_access($op, $entity, $account, $entity_type) {
  $permission_string = "{$op} services_entity_test entities";

  // todo: for the index service, fake different 'view' access to different
  // entities.
  return user_access($permission_string, $account);
}