You are here

function _relation_entity_collector_user_has_access in Relation 7

Same name and namespace in other branches
  1. 8.2 relation_entity_collector/relation_entity_collector.module \_relation_entity_collector_user_has_access()
  2. 8 relation_entity_collector/relation_entity_collector.module \_relation_entity_collector_user_has_access()

Access check helper.

4 calls to _relation_entity_collector_user_has_access()
relation_entity_collector_block_view in relation_entity_collector/relation_entity_collector.module
Implements hook_block_view().
relation_entity_collector_entity_view_alter in relation_entity_collector/relation_entity_collector.module
Implements hook_entity_view_alter().
relation_entity_collector_preprocess_username in relation_entity_collector/relation_entity_collector.module
Implements hook_preprocess_username().
relation_entity_collector_views_post_execute in relation_entity_collector/relation_entity_collector.module
Implements hook_views_post_execute().

File

relation_entity_collector/relation_entity_collector.module, line 95
Relation Entity Collector Block.

Code

function _relation_entity_collector_user_has_access() {
  return user_access('administer relations') || user_access('create relations');
}