diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-27 10:47:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-27 10:47:36 +0000 |
commit | f680e7f8acc14257bb585ef43a0a0572bdef0bdd (patch) | |
tree | e0fe19b2c70adaf75dd79b46f784c002ffcb9748 /app/controllers/groups_controller.rb | |
parent | 1ebe9640a6b7a8d06627bb73452955d09cd965e0 (diff) | |
download | redmine-f680e7f8acc14257bb585ef43a0a0572bdef0bdd.tar.gz redmine-f680e7f8acc14257bb585ef43a0a0572bdef0bdd.zip |
Adds routes for group users.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7946 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r-- | app/controllers/groups_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index c5f0b3e37..bcb25012d 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -125,7 +125,7 @@ class GroupsController < ApplicationController def remove_user @group = Group.find(params[:id]) - @group.users.delete(User.find(params[:user_id])) if request.post? + @group.users.delete(User.find(params[:user_id])) if request.delete? respond_to do |format| format.html { redirect_to :controller => 'groups', :action => 'edit', :id => @group, :tab => 'users' } format.js { render(:update) {|page| page.replace_html "tab-content-users", :partial => 'groups/users'} } |