diff options
-rw-r--r-- | app/controllers/alerts_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/servers_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/tournaments_controller.rb | 2 |
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 } |