You are here

function bbb_access_moderator in BigBlueButton 6

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

Check moderation access permissions; Menu access callback

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

File

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

Code

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

  // Check for node access and access start meetings
  if (node_access('view', $node) && (user_access('moderate meetings') || user_access('administer big blue button') || $user->uid == $node->uid && user_access('moderate own meetings'))) {
    return TRUE;
  }
  return FALSE;
}