aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
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 /config/routes.rb
parent45caf256135181997e5ab12eb06ce5d07cbe2545 (diff)
Make clearing a profile photo a post-restricted action
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 1db9f6c31..6704eb9fb 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -279,10 +279,9 @@ Alaveteli::Application.routes.draw do
post 'clear_bounce', :on => :member
post 'destroy_track', :on => :member
post 'login_as', :on => :member
-
+ post 'clear_profile_photo', :on => :member
end
end
- match '/admin/user/clear_profile_photo/:id' => 'admin_user#clear_profile_photo', :as => :admin_clear_profile_photo
match '/admin/user/modify_comment_visibility/:id' => 'admin_user#modify_comment_visibility', :as => 'admin_user_modify_comment_visibility'
####