| @@ 544-549 (lines=6) @@ | ||
| 541 | ||
| 542 | if (is_array($participant_list)) { |
|
| 543 | // Iterate looking for all configuration |
|
| 544 | foreach($participant_list as $participant){ |
|
| 545 | if( $participant->selectiontype == 'all' ) { |
|
| 546 | if ( $participant->role == BIGBLUEBUTTONBN_ROLE_MODERATOR ) { |
|
| 547 | return true; |
|
| 548 | } |
|
| 549 | } |
|
| 550 | } |
|
| 551 | ||
| 552 | //Iterate looking for roles |
|
| @@ 568-575 (lines=8) @@ | ||
| 565 | } |
|
| 566 | ||
| 567 | //Iterate looking for users |
|
| 568 | foreach($participant_list as $participant){ |
|
| 569 | if( $participant->selectiontype == 'user' ) { |
|
| 570 | if( $participant->selectionid == $user ) { |
|
| 571 | if ( $participant->role == BIGBLUEBUTTONBN_ROLE_MODERATOR ) { |
|
| 572 | return true; |
|
| 573 | } |
|
| 574 | } |
|
| 575 | } |
|
| 576 | } |
|
| 577 | } |
|
| 578 | ||