summaryrefslogtreecommitdiff
path: root/app/controllers/alerts_controller.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-29 11:25:23 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-29 11:25:23 -0400
commit0d6f7a3bfbf4c87510a1bcf967b618f98e149d49 (patch)
treee3cd7d5329bd3c04a2fbfc766db34766fab12bc3 /app/controllers/alerts_controller.rb
parent8aefe73872571ac54738bde71d4da5611659a0cc (diff)
clean up permission system
Diffstat (limited to 'app/controllers/alerts_controller.rb')
-rw-r--r--app/controllers/alerts_controller.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/controllers/alerts_controller.rb b/app/controllers/alerts_controller.rb
index b728c7e..8f65f3b 100644
--- a/app/controllers/alerts_controller.rb
+++ b/app/controllers/alerts_controller.rb
@@ -73,10 +73,6 @@ class AlertsController < ApplicationController
@alert = Alert.find(params[:id])
end
- def is_owner?(object)
- object.author == current_user
- end
-
# Never trust parameters from the scary internet, only allow the white list through.
def alert_params
params.require(:alert).permit(:author_id, :message)