From f225ff86743fca4c6957790d78b66ba663d5b40d Mon Sep 17 00:00:00 2001 From: Andrey Kumanyaev Date: Fri, 25 Jan 2013 22:33:49 +0400 Subject: [PATCH] Update user finding (by username) in admin teams members controller --- app/controllers/admin/teams/members_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/teams/members_controller.rb b/app/controllers/admin/teams/members_controller.rb index 139b82ab66c..e7dbcad568f 100644 --- a/app/controllers/admin/teams/members_controller.rb +++ b/app/controllers/admin/teams/members_controller.rb @@ -36,6 +36,6 @@ class Admin::Teams::MembersController < Admin::Teams::ApplicationController protected def team_member - @member ||= user_team.members.find(params[:id]) + @member ||= user_team.members.find_by_username(params[:id]) end end