repo & project access separated. critical gitolite bugfix
This commit is contained in:
parent
2ca00bdb3e
commit
cb021e5831
12 changed files with 106 additions and 48 deletions
|
@ -25,15 +25,10 @@ class TeamMembersController < ApplicationController
|
|||
@team_member = project.users_projects.find(params[:id])
|
||||
@team_member.update_attributes(params[:team_member])
|
||||
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html do
|
||||
unless @team_member.valid?
|
||||
flash[:alert] = "User should have at least one role"
|
||||
end
|
||||
redirect_to team_project_path(@project)
|
||||
end
|
||||
unless @team_member.valid?
|
||||
flash[:alert] = "User should have at least one role"
|
||||
end
|
||||
redirect_to team_project_path(@project)
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue