summaryrefslogtreecommitdiff
path: root/app/controllers/alerts_controller.rb
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 /app/controllers/alerts_controller.rb
parent48e1937cfac7e1080c60773533f93c0e371f1e39 (diff)
fix missing question-marks
Diffstat (limited to 'app/controllers/alerts_controller.rb')
-rw-r--r--app/controllers/alerts_controller.rb2
1 files changed, 1 insertions, 1 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 }