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
@ -53,4 +53,8 @@ module AdminsHelper
|
||||
I18n.t("administrator.site_settings.registration.methods.approval")
|
||||
end
|
||||
end
|
||||
|
||||
def room_limit_number
|
||||
Setting.find_or_create_by!(provider: user_settings_provider).get_value("Room Limit").to_i
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user