MDL-74654 mod_bigbluebuttonbn: Add role parameter

This commit is contained in:
Shamiso.Jaravaza
2022-10-18 08:23:54 -06:00
parent 00ad2a14da
commit afd07d1e42
4 changed files with 59 additions and 0 deletions
+13
View File
@@ -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
*