You are here

function brightcove_video_access in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.video.inc \brightcove_video_access()

Access callback for video entities.

1 string reference to 'brightcove_video_access'
brightcove_entity_info in ./brightcove.module
Implements hook_entity_info().

File

./brightcove.video.inc, line 611
Brightcove video related functions.

Code

function brightcove_video_access($op, $entity, $account = NULL) {

  // Viewing the video should be restricted by the content access the
  // video is embedded into.
  // Video creation depends on the client anyway so let's grant access and
  // notify user on failure later.
  return $op == 'view' || $op == 'add' || $op == 'create' || brightcove_client_access('use', $entity->client);
}