refactor add to team
This commit is contained in:
parent
5f3df89c64
commit
639b0a8715
|
@ -82,9 +82,7 @@ module Gitlab
|
||||||
project_team_user.destroy if project_team_user.present?
|
project_team_user.destroy if project_team_user.present?
|
||||||
|
|
||||||
# project_team_user.project_access != granted_access
|
# project_team_user.project_access != granted_access
|
||||||
if granted_access > 0
|
project.team << [user, granted_access] if granted_access > 0
|
||||||
UsersProject.add_users_into_projects([project.id], [user.id], granted_access)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def max_teams_member_permission_in_project(user, project, teams = nil)
|
def max_teams_member_permission_in_project(user, project, teams = nil)
|
||||||
|
|
Loading…
Reference in a new issue