From b4138257f0f541850f0f1dc77d02ab93d2e4d619 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 25 Oct 2019 16:31:57 +0000 Subject: Specific action for updating role permissions. git-svn-id: http://svn.redmine.org/redmine/trunk@18862 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.3