bigbluebutton / greenlight

A really simple end-user interface for your BigBlueButton server.
GNU Lesser General Public License v3.0
787 stars 3.8k forks source link

Fixed Moderator Access Code for all rooms #5805

Closed KuzNet closed 2 months ago

KuzNet commented 2 months ago

I know it's not very secure, but we have plenty of rooms and our school admins want to have one moderator code for all rooms. Is it possible to have?

farhatahmad commented 2 months ago

This can be done manually through the console (replace ____ with the code that you want)

docker exec -it greenlight-v3 bundle exec rails c
MeetingOption.find_by(name: "glModeratorAccessCode").room_meeting_options.update_all(value: "____")

Note that this will only apply to rooms that currently exist. Newly created rooms will not have a code. You can continuosly run the commands above whenever needed

KuzNet commented 2 months ago

Thank you, work like a charm!