diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-15 14:31:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-15 14:31:54 +0000 |
commit | 28f0c4f131b02ab67bd9c254f9853168ec6a5b65 (patch) | |
tree | feedcef78913a173d5f8776c3f13e0f8990c317b /config/routes.rb | |
parent | 638583012ae165e5cb197fb3b4d7a0fe54318217 (diff) | |
download | redmine-28f0c4f131b02ab67bd9c254f9853168ec6a5b65.tar.gz redmine-28f0c4f131b02ab67bd9c254f9853168ec6a5b65.zip |
Adds the ability for users to delete their own account (#10664). Can be disabled in application settings.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9417 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 51bb66cca..de2a7c8ee 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -78,6 +78,8 @@ ActionController::Routing::Routes.draw do |map| map.connect 'my/account', :controller => 'my', :action => 'account', :conditions => {:method => [:get, :post]} + map.connect 'my/account/destroy', :controller => 'my', :action => 'destroy', + :conditions => {:method => [:get, :post]} map.connect 'my/page', :controller => 'my', :action => 'page', :conditions => {:method => :get} # Redirects to my/page |