Skip to content
Snippets Groups Projects
Commit 639b0a87 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

refactor add to team

parent 5f3df89c
No related branches found
No related tags found
1 merge request!2940Expanding repos and hooks paths in settings
Loading
Loading
@@ -82,9 +82,7 @@ module Gitlab
project_team_user.destroy if project_team_user.present?
 
# project_team_user.project_access != granted_access
if granted_access > 0
UsersProject.add_users_into_projects([project.id], [user.id], granted_access)
end
project.team << [user, granted_access] if granted_access > 0
end
 
def max_teams_member_permission_in_project(user, project, teams = nil)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment