diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-04-23 00:19:55 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-04-23 00:21:56 +0300 |
commit | d3462e711c0b3cc17ef47e1ffffa6f40f98b5e98 (patch) | |
tree | 84dd1dfaf30c703e2e77a13d0c37a1d8c939d80d /config | |
parent | 80893cad672361e62c0c05c2cf9262209bc54fd2 (diff) |
Fix issue with impersonation
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index 2f820aafed1..9c6fb682fc9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -212,8 +212,6 @@ Rails.application.routes.draw do resources :keys, only: [:show, :destroy] resources :identities, except: [:show] - delete 'stop_impersonation' => 'impersonation#destroy', on: :collection - member do get :projects get :keys @@ -223,12 +221,14 @@ Rails.application.routes.draw do put :unblock put :unlock put :confirm - post 'impersonate' => 'impersonation#create' + post :impersonate patch :disable_two_factor delete 'remove/:email_id', action: 'remove_email', as: 'remove_email' end end + resource :impersonation, only: :destroy + resources :abuse_reports, only: [:index, :destroy] resources :spam_logs, only: [:index, :destroy] |