diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-26 14:51:57 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-26 14:51:57 +0300 |
commit | a5dbe353549ad71ce2868d67dee5226ad8d46e63 (patch) | |
tree | b8d0f09bfd24f1c7a7275e48c85dc37b48be6fa3 /app/controllers/admin/groups_controller.rb | |
parent | db03bfa86838020d5add006f8e7714d4a0823c32 (diff) | |
download | gitlab-ce-a5dbe353549ad71ce2868d67dee5226ad8d46e63.tar.gz |
Improve change group ownership logic
Diffstat (limited to 'app/controllers/admin/groups_controller.rb')
-rw-r--r-- | app/controllers/admin/groups_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb index 31d25377b76..a2201f732e6 100644 --- a/app/controllers/admin/groups_controller.rb +++ b/app/controllers/admin/groups_controller.rb @@ -34,7 +34,7 @@ class Admin::GroupsController < Admin::ApplicationController owner_id =group_params.delete(:owner_id) if owner_id - @group.owner = User.find(owner_id) + @group.change_owner(User.find(owner_id)) end if @group.update_attributes(group_params) |