mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 16:21:52 +02:00
multiple site -> supporters
This commit is contained in:
parent
2f432281a3
commit
e1a4c4b5c9
4 changed files with 24 additions and 15 deletions
6
app.rb
6
app.rb
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue