| @@ 414-418 (lines=5) @@ | ||
| 411 | function bigbluebuttonbn_bbb_view_join_meeting($bbbsession, $bigbluebuttonbn, $origin = 0) { |
|
| 412 | // Update the cache. |
|
| 413 | $meetinginfo = bigbluebuttonbn_get_meeting_info($bbbsession['meetingid'], BIGBLUEBUTTONBN_UPDATE_CACHE); |
|
| 414 | if ($bbbsession['userlimit'] > 0 && intval($meetinginfo['participantCount']) >= $bbbsession['userlimit']) { |
|
| 415 | // No more users allowed to join. |
|
| 416 | header('Location: '.$bbbsession['logoutURL']); |
|
| 417 | return; |
|
| 418 | } |
|
| 419 | // Build the URL. |
|
| 420 | $password = $bbbsession['viewerPW']; |
|
| 421 | if ($bbbsession['administrator'] || $bbbsession['moderator']) { |
|
| @@ 3687-3691 (lines=5) @@ | ||
| 3684 | function bigbluebuttonbn_join_meeting($bbbsession, $bigbluebuttonbn, $origin = 0) { |
|
| 3685 | // Update the cache. |
|
| 3686 | $meetinginfo = bigbluebuttonbn_get_meeting_info($bbbsession['meetingid'], BIGBLUEBUTTONBN_UPDATE_CACHE); |
|
| 3687 | if ($bbbsession['userlimit'] > 0 && intval($meetinginfo['participantCount']) >= $bbbsession['userlimit']) { |
|
| 3688 | // No more users allowed to join. |
|
| 3689 | header('Location: '.$bbbsession['logoutURL']); |
|
| 3690 | return; |
|
| 3691 | } |
|
| 3692 | // Mark guests (from external guestlink) |
|
| 3693 | $guest = false; |
|
| 3694 | if (isset($bbbsession['guest']) && $bbbsession['guest'] == true) { |
|