Add functional in user section
This commit is contained in:
parent
9c574464a6
commit
25c5763780
7 changed files with 59 additions and 1 deletions
|
@ -53,9 +53,18 @@ class GroupsController < ApplicationController
|
|||
|
||||
if @project
|
||||
@team_member = @project.users_projects.new
|
||||
else
|
||||
@team_member = UsersProject.new
|
||||
end
|
||||
end
|
||||
|
||||
def team_members
|
||||
@group.projects.each do |p|
|
||||
p.add_users_ids_to_team(params[:user_ids], params[:project_access])
|
||||
end
|
||||
redirect_to people_group_path(@group), notice: 'Users was successfully added.'
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue