Commit 04d29231 authored by Penar Musaraj's avatar Penar Musaraj
Browse files

Fix broken /login endpoint

parent 1f134cff
......@@ -83,28 +83,29 @@ export default {
id: "discourse-bbb",
});
if (siteSettings.bbb_staff_only && !currentUser.staff) {
return;
}
api.modifyClass("controller:composer", {
actions: {
insertBBBModal() {
showModal("insert-bbb").setProperties({
toolbarEvent: this.get("toolbarEvent"),
});
if (
!siteSettings.bbb_staff_only ||
(siteSettings.bbb_staff_only && currentUser && currentUser.staff)
) {
api.modifyClass("controller:composer", {
actions: {
insertBBBModal() {
showModal("insert-bbb").setProperties({
toolbarEvent: this.get("toolbarEvent"),
});
},
},
},
});
});
api.addToolbarPopupMenuOptionsCallback((controller) => {
return {
id: "insert-bbb",
icon: "video",
action: "insertBBBModal",
label: "bbb.composer_title",
};
});
api.addToolbarPopupMenuOptionsCallback((controller) => {
return {
id: "insert-bbb",
icon: "video",
action: "insertBBBModal",
label: "bbb.composer_title",
};
});
}
});
},
};
en:
js:
bbb:
composer_title: Add BigBlueButton room
composer_title: Add BigBlueButton
meetingID: Meeting ID
button_text: Button label (optional)
attendeePW: Attendee password
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment