forked from External/greenlight
Added room configuration tab to admin panel
This commit is contained in:
@ -73,6 +73,10 @@ class AdminsController < ApplicationController
|
||||
@pagy, @rooms = pagy_array(server_rooms_list)
|
||||
end
|
||||
|
||||
# GET /admins/room_configuration
|
||||
def room_configuration
|
||||
end
|
||||
|
||||
# MANAGE USERS
|
||||
|
||||
# GET /admins/edit/:user_uid
|
||||
@ -241,6 +245,16 @@ class AdminsController < ApplicationController
|
||||
redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
|
||||
end
|
||||
|
||||
# ROOM CONFIGURATION
|
||||
# POST /admins/update_room_configuration
|
||||
def update_room_configuration
|
||||
@settings.update_value(params[:setting], params[:value])
|
||||
|
||||
flash_message = I18n.t("administrator.flash.room_configuration")
|
||||
|
||||
redirect_to admin_room_configuration_path, flash: { success: flash_message }
|
||||
end
|
||||
|
||||
# ROLES
|
||||
|
||||
# GET /admins/roles
|
||||
|
Reference in New Issue
Block a user