You are here

function page_manager_file_view_access_check in File Entity (fieldable files) 7.3

Same name and namespace in other branches
  1. 7.2 plugins/tasks/file_view.inc \page_manager_file_view_access_check()

Callback to determine if a page is accessible.

Parameters

$task: The task plugin.

$subtask_id: The subtask id

$contexts: The contexts loaded for the task.

Return value

TRUE if the current user can access the page.

File

plugins/tasks/file_view.inc, line 162
Handle the 'file view' override task.

Code

function page_manager_file_view_access_check($task, $subtask_id, $contexts) {
  $context = reset($contexts);
  return file_entity_access('view');
}