Commit 86d9ed9a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix user add to group from admin area

parent 38a9fc4f
......@@ -58,13 +58,6 @@ class Admin::GroupsController < Admin::ApplicationController
redirect_to :back, notice: 'Group was successfully updated.'
end
def remove_project
@project = Project.find(params[:project_id])
@project.transfer(nil)
redirect_to :back, notice: 'Group was successfully updated.'
end
def project_teams_update
@group.add_users(params[:user_ids].split(','), params[:group_access])
......
......@@ -75,7 +75,7 @@
%div
= users_select_tag(:user_ids, multiple: true)
%div.prepend-top-10
= select_tag :project_access, options_for_select(Project.access_options), {class: "project-access-select chosen span2"}
= select_tag :group_access, options_for_select(UsersGroup.group_access_roles), class: "project-access-select chosen"
%hr
= submit_tag 'Add users into group', class: "btn btn-create"
.ui-box
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment