UX: Allow admins to set users as owners while adding users.

https://meta.discourse.org/t/adding-owners-members-ux-is-inconsistent-and-misleading/58084/9
This commit is contained in:
Guo Xiang Tan
2018-03-26 17:33:03 +08:00
parent 27e60c78d4
commit dcd1d422d1
9 changed files with 99 additions and 22 deletions

View File

@ -166,7 +166,7 @@ class Admin::GroupsController < Admin::AdminController
group.restore_user_count!
render json: success_json
render json: success_json.merge!(usernames: users.pluck(:username))
end
def remove_owner