You are here

function lti_tool_provider_context_access in LTI Tool Provider 7

Access callback that checks for LTI context as well as user access.

Parameters

string $access: The access permission requested.

Return value

boolean TRUE grants access.

2 string references to 'lti_tool_provider_context_access'
lti_tool_provider_memberships_menu in lti_tool_provider_memberships/lti_tool_provider_memberships.module
Implements hook_menu().
lti_tool_provider_menu in ./lti_tool_provider.module
Implements hook_menu().

File

./lti_tool_provider.module, line 214
lti_tool_provider hook implementations and support functions.

Code

function lti_tool_provider_context_access($access) {
  if (isset($_SESSION['lti_tool_provider_context_info']) && user_access($access)) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}