aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-11-07 16:19:19 +0000
committerLouise Crow <louise.crow@gmail.com>2014-12-18 14:03:50 +0000
commit8c33668e81cf47b5b858c93c307de04e8683fc7c (patch)
treeb9ef39edc6c4080bf1005d5bc1c88b7b4efe416e /app/controllers
parent45caf256135181997e5ab12eb06ce5d07cbe2545 (diff)
Make clearing a profile photo a post-restricted action
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin_user_controller.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/controllers/admin_user_controller.rb b/app/controllers/admin_user_controller.rb
index 6031c816b..bbb5d002a 100644
--- a/app/controllers/admin_user_controller.rb
+++ b/app/controllers/admin_user_controller.rb
@@ -83,10 +83,6 @@ class AdminUserController < AdminController
def clear_profile_photo
@admin_user = User.find(params[:id])
- if !request.post?
- raise "Can only clear profile photo from POST request"
- end
-
if @admin_user.profile_photo
@admin_user.profile_photo.destroy
end