From f112b9c3eefdfd2d58bc4ebbaa870886bb0c6d67 Mon Sep 17 00:00:00 2001 From: Ahmed Abdou <56641484+ahmed-abdou1@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:27:08 -0500 Subject: [PATCH] LTI-232: hide build tag through broker settings (#274) * LTI-303 - Added a copy icon with clipboard feature * LTI-303: Added a copy icon with copy to clipboard feature * Update Gemfile.lock * LTI-303: Added a copy icon with copy to clipboard feature * hide_build_tag feature * Update _form.html.erb --------- Co-authored-by: Jesus Federico Co-authored-by: Mariam A --- app/controllers/concerns/broker_helper.rb | 4 ++++ app/controllers/rooms_controller.rb | 2 +- app/views/shared/_footer.html.erb | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/controllers/concerns/broker_helper.rb b/app/controllers/concerns/broker_helper.rb index db4bfb26..faa4c58f 100644 --- a/app/controllers/concerns/broker_helper.rb +++ b/app/controllers/concerns/broker_helper.rb @@ -43,4 +43,8 @@ def shared_rooms_enabled(tenant) tenant_settings(tenant: tenant)&.[]('settings')&.[]('enable_shared_rooms') == 'true' || false end end + + def hide_build_tag(tenant) + tenant_settings(tenant: tenant)&.[]('settings')&.[]('hide_build_tag') == 'true' || false + end end diff --git a/app/controllers/rooms_controller.rb b/app/controllers/rooms_controller.rb index 7b2b0ab6..2321b45f 100644 --- a/app/controllers/rooms_controller.rb +++ b/app/controllers/rooms_controller.rb @@ -249,7 +249,7 @@ def individual_recording end helper_method :recording_date, :recording_length, :meeting_running?, :bigbluebutton_moderator_roles, - :bigbluebutton_recording_public_formats, :meeting_info, :bigbluebutton_recording_enabled, :server_running?, :shared_rooms_enabled + :bigbluebutton_recording_public_formats, :meeting_info, :bigbluebutton_recording_enabled, :server_running?, :shared_rooms_enabled, :hide_build_tag private diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb index 5d3df3be..11a8760a 100644 --- a/app/views/shared/_footer.html.erb +++ b/app/views/shared/_footer.html.erb @@ -14,9 +14,11 @@ %> + <% end %> +