summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-25 16:31:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-25 16:31:57 +0000
commitb4138257f0f541850f0f1dc77d02ab93d2e4d619 (patch)
tree0cc67e750544871a97f3b1e8756cd311198c5498 /config
parent0dc7269c8878502744bf825b052ba6e1f37f6e7f (diff)
downloadredmine-b4138257f0f541850f0f1dc77d02ab93d2e4d619.tar.gz
redmine-b4138257f0f541850f0f1dc77d02ab93d2e4d619.zip
Specific action for updating role permissions.
git-svn-id: http://svn.redmine.org/redmine/trunk@18862 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 37eb86ecf..d8e5fd710 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -317,7 +317,8 @@ Rails.application.routes.draw do
end
resources :roles do
collection do
- match 'permissions', :via => [:get, :post]
+ get 'permissions'
+ post 'permissions', :to => 'roles#update_permissions'
end
end
resources :enumerations, :except => :show