summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/tournaments_controller.rb3
-rw-r--r--app/models/user.rb2
2 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index 0807953..d2a2d18 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -22,7 +22,8 @@ class TournamentsController < ApplicationController
def new
@games = Game.all
@tournament = Tournament.new(game: Game.find_by_id(params[:game]))
- @tournament.status = 1
+ @tournament.status = 0
+ @tournament.save
end
# GET /tournaments/1/edit
diff --git a/app/models/user.rb b/app/models/user.rb
index 70e7f25..6e439fb 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -19,7 +19,7 @@ class User < ActiveRecord::Base
when :admin
return ((groups & 2) != 0)
when :host
- return ((groups & 1) != 0)
+ return true #((groups & 1) != 0)
when :player
return true
when :specator