MDL-74654 mod_bigbluebuttonbn: Add role parameter
This commit is contained in:
@@ -725,6 +725,19 @@ EOF;
|
||||
return $this->get_viewer_password();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the appropriate designated role for the current user.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_current_user_role(): string {
|
||||
if ($this->is_admin() || $this->is_moderator()) {
|
||||
return 'MODERATOR';
|
||||
}
|
||||
|
||||
return 'VIEWER';
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to show the recording button
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user