File tree Expand file tree Collapse file tree 3 files changed +19
-9
lines changed
src/addons/mod/bigbluebuttonbn Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 461461 "addon.mod_bigbluebuttonbn.view_message_session_started_at" : " bigbluebuttonbn" ,
462462 "addon.mod_bigbluebuttonbn.view_message_viewer" : " bigbluebuttonbn" ,
463463 "addon.mod_bigbluebuttonbn.view_message_viewers" : " bigbluebuttonbn" ,
464+ "addon.mod_bigbluebuttonbn.view_nojoin" : " bigbluebuttonbn" ,
464465 "addon.mod_book.errorchapter" : " book" ,
465466 "addon.mod_book.modulenameplural" : " book" ,
466467 "addon.mod_book.navnexttitle" : " book" ,
Original file line number Diff line number Diff line change @@ -81,15 +81,23 @@ export class AddonModBBBIndexComponent extends CoreCourseModuleMainActivityCompo
8181 return ;
8282 }
8383
84- this . meetingInfo = await AddonModBBB . getMeetingInfo ( this . bbb . id , this . groupId , {
85- cmId : this . module . id ,
86- } ) ;
87-
88- if ( this . meetingInfo . statusrunning && this . meetingInfo . userlimit > 0 ) {
89- const count = ( this . meetingInfo . participantcount || 0 ) + ( this . meetingInfo . moderatorcount || 0 ) ;
90- if ( count === this . meetingInfo . userlimit ) {
91- this . meetingInfo . statusmessage = Translate . instant ( 'addon.mod_bigbluebuttonbn.userlimitreached' ) ;
84+ try {
85+ this . meetingInfo = await AddonModBBB . getMeetingInfo ( this . bbb . id , this . groupId , {
86+ cmId : this . module . id ,
87+ } ) ;
88+
89+ if ( this . meetingInfo . statusrunning && this . meetingInfo . userlimit > 0 ) {
90+ const count = ( this . meetingInfo . participantcount || 0 ) + ( this . meetingInfo . moderatorcount || 0 ) ;
91+ if ( count === this . meetingInfo . userlimit ) {
92+ this . meetingInfo . statusmessage = Translate . instant ( 'addon.mod_bigbluebuttonbn.userlimitreached' ) ;
93+ }
9294 }
95+ } catch ( error ) {
96+ if ( error && error . errorcode === 'restrictedcontextexception' ) {
97+ error . message = Translate . instant ( 'addon.mod_bigbluebuttonbn.view_nojoin' ) ;
98+ }
99+
100+ throw error ;
93101 }
94102 }
95103
Original file line number Diff line number Diff line change 1414 "view_message_moderators" : " moderators" ,
1515 "view_message_session_started_at" : " This session started at" ,
1616 "view_message_viewer" : " viewer" ,
17- "view_message_viewers" : " viewers"
17+ "view_message_viewers" : " viewers" ,
18+ "view_nojoin" : " You do not have a role that is allowed to join this session."
1819}
You can’t perform that action at this time.
0 commit comments