summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2012-12-20 10:03:24 +0100
committerPeter Kozak <spag@golwen.net>2012-12-20 10:03:24 +0100
commite405bce6ab07f385e32c0d885b1d51ca96bf1ff5 (patch)
tree510ced8b7d925f46292ee872d04aaa25a9d0a17f /app/controllers
parent6bf23a88899522a52740113a3cfdccc7ae533fca (diff)
parent5c270c981a21d9aafaecb3b59b98dfa6a3d9d97f (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/gemeinschaft_setups_controller.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/gemeinschaft_setups_controller.rb b/app/controllers/gemeinschaft_setups_controller.rb
index cafb8a3..e871862 100644
--- a/app/controllers/gemeinschaft_setups_controller.rb
+++ b/app/controllers/gemeinschaft_setups_controller.rb
@@ -26,6 +26,11 @@ class GemeinschaftSetupsController < ApplicationController
:language_id => @gemeinschaft_setup.language_id,
:description => t('gemeinschaft_setups.initial_setup.super_tenant_description'),
)
+
+ # GsNode
+ GsNode.create(:name => 'Homebase', :ip_address => @gemeinschaft_setup.sip_domain.host,
+ :push_updates_to => false, :accepts_updates_from => false,
+ :site => 'Homebase', :element_name => 'Homebase')
# Admin
user = @gemeinschaft_setup.user
@@ -35,7 +40,7 @@ class GemeinschaftSetupsController < ApplicationController
# Create the Super-Tenant's group:
super_tenant_super_admin_group = super_tenant.user_groups.create(:name => t('gemeinschaft_setups.initial_setup.super_admin_group_name'))
super_tenant_super_admin_group.user_group_memberships.create(:user_id => user.id)
-
+
# Auto-Login:
session[:user_id] = user.id