Added room configuration tab to admin panel

This commit is contained in:
farhatahmad
2020-04-06 15:48:42 -04:00
parent 5aa1868f63
commit 5c7062d7c9
14 changed files with 264 additions and 32 deletions

View File

@ -37,4 +37,8 @@ module RoomsHelper
@diff = current_user.rooms.count - limit
@diff.positive? && current_user.rooms.pluck(:id).index(room.id) + 1 > limit
end
def room_configuration(name)
@settings.get_value(name)
end
end