forked from External/greenlight
Added setting for admin to limit the number of rooms for the user (#607)
This commit is contained in:
committed by
Jesus Federico
parent
4f2b190239
commit
e4f50026f1
@ -130,6 +130,9 @@ module Greenlight
|
||||
# Default registration method if the user does not specify one
|
||||
config.registration_method_default = config.registration_methods[:open]
|
||||
|
||||
# Default limit on number of rooms users can create
|
||||
config.number_of_rooms_default = 15
|
||||
|
||||
# Default admin password
|
||||
config.admin_password_default = ENV['ADMIN_PASSWORD'] || 'administrator'
|
||||
end
|
||||
|
@ -55,6 +55,9 @@ en:
|
||||
approval: Approve/Decline
|
||||
invite: Join by Invitation
|
||||
open: Open Registration
|
||||
rooms:
|
||||
info: Limits the number of rooms that a user can have (including Home Room). This setting does not apply to administrators.
|
||||
title: Number of Rooms per User
|
||||
subtitle: Customize Greenlight
|
||||
title: Site Settings
|
||||
flash:
|
||||
@ -353,6 +356,8 @@ en:
|
||||
owner: Owner
|
||||
no_sessions: This room has no sessions, yet!
|
||||
recordings: Room Recordings
|
||||
room_limit: You have reached the maximum number of rooms allowed
|
||||
room_limit_exceeded: You have exceeded the number of rooms allowed. Please delete %{difference} room(s) to access this room.
|
||||
sessions: Sessions
|
||||
settings: Room Settings
|
||||
start: Start
|
||||
|
@ -51,6 +51,7 @@ Rails.application.routes.draw do
|
||||
post '/invite', to: 'admins#invite', as: :invite_user
|
||||
post '/registration_method/:method', to: 'admins#registration_method', as: :admin_change_registration
|
||||
post '/approve/:user_uid', to: 'admins#approve', as: :admin_approve
|
||||
post '/room_limit', to: 'admins#room_limit', as: :admin_room_limit
|
||||
end
|
||||
|
||||
scope '/themes' do
|
||||
|
Reference in New Issue
Block a user