summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 11:26:21 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 11:26:21 -0500
commit5bd262333beb533cc08f21f7398e3ed1e890a23d (patch)
tree067296cf5da2ebc8bce87f1281f502635bd9cfd1
parent48e1937cfac7e1080c60773533f93c0e371f1e39 (diff)
fix missing question-marks
-rw-r--r--app/controllers/alerts_controller.rb2
-rw-r--r--app/controllers/servers_controller.rb2
-rw-r--r--app/controllers/tournaments_controller.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/alerts_controller.rb b/app/controllers/alerts_controller.rb
index 9e37ec9..ac11854 100644
--- a/app/controllers/alerts_controller.rb
+++ b/app/controllers/alerts_controller.rb
@@ -69,7 +69,7 @@ class AlertsController < ApplicationController
end
def check_perms
- unless (signed_in? and (current_user.in_group(:admin) or current_user.in_group(:host)))
+ unless (signed_in? and (current_user.in_group?(:admin) or current_user.in_group?(:host)))
respond_to do |format|
format.html { render action: 'permission_denied', status: :forbidden }
format.json { render json: "Permission denied", status: :forbidden }
diff --git a/app/controllers/servers_controller.rb b/app/controllers/servers_controller.rb
index 6d8ac75..bb5d5f7 100644
--- a/app/controllers/servers_controller.rb
+++ b/app/controllers/servers_controller.rb
@@ -69,7 +69,7 @@ class ServersController < ApplicationController
end
def check_perms
- unless (signed_in? and current_user.in_group(:admin))
+ unless (signed_in? and current_user.in_group?(:admin))
respond_to do |format|
format.html { render action: 'permission_denied', status: :forbidden }
format.json { render json: "Permission denied", status: :forbidden }
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index 3f1c134..1d17205 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -71,7 +71,7 @@ class TournamentsController < ApplicationController
end
def check_perms
- unless (signed_in? and current_user.in_group(:host))
+ unless (signed_in? and current_user.in_group?(:host))
respond_to do |format|
format.html { render action: 'permission_denied', status: :forbidden }
format.json { render json: "Permission denied", status: :forbidden }