multiple site -> supporters

This commit is contained in:
Kyle Drake 2014-12-03 02:50:22 -08:00
parent 2f432281a3
commit e1a4c4b5c9
4 changed files with 24 additions and 15 deletions

6
app.rb
View file

@ -119,6 +119,12 @@ end
post '/settings/create_child' do
require_login
if !current_site.plan_feature(:unlimited_site_creation)
flash[:error] = 'Cannot create a new site with your current plan, please become a supporter.'
redirect '/settings#sites'
end
site = Site.new
site.parent_site_id = parent_site.id