You are here

function bbb_access_attendee in BigBlueButton 6

Same name and namespace in other branches
  1. 7 bbb.module \bbb_access_attendee()

Check attendance access permissions; Menu access callback

1 string reference to 'bbb_access_attendee'
bbb_menu in ./bbb.module
Implement HOOK_menu().

File

./bbb.module, line 150
Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.

Code

function bbb_access_attendee($node) {
  global $user;
  if (!bbb_is_meeting_type($node->type)) {
    return FALSE;
  }

  // Check for node access and access to attend meetings
  if (node_access('view', $node) && (user_access('attend meetings') || user_access('administer big blue button'))) {
    return TRUE;
  }
  return FALSE;
}