From 5bd262333beb533cc08f21f7398e3ed1e890a23d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 6 Mar 2014 11:26:21 -0500 Subject: fix missing question-marks --- app/controllers/alerts_controller.rb | 2 +- app/controllers/servers_controller.rb | 2 +- app/controllers/tournaments_controller.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers') 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 } -- cgit v1.2.3-2-g168b