summaryrefslogtreecommitdiff
path: root/app/models/project_team.rb
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2016-08-01 20:12:30 +0200
committerAdam Niedzielski <adamsunday@gmail.com>2016-08-01 20:12:30 +0200
commit6d92cd3e836f2252b660479f5b33d15e6456b04d (patch)
tree547f223094b73a62ce033e9526660dd5457a45a8 /app/models/project_team.rb
parente299504b798c053817f1c866649542ac0c779924 (diff)
downloadgitlab-ce-6d92cd3e836f2252b660479f5b33d15e6456b04d.tar.gz
WIP
Diffstat (limited to 'app/models/project_team.rb')
-rw-r--r--app/models/project_team.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb
index fdfaf052730..cf1d2396974 100644
--- a/app/models/project_team.rb
+++ b/app/models/project_team.rb
@@ -33,12 +33,13 @@ class ProjectTeam
member
end
- def add_users(users, access, current_user = nil)
+ def add_users(users, access, current_user = nil, expires_at = nil)
ProjectMember.add_users_into_projects(
[project.id],
users,
access,
- current_user
+ current_user,
+ expires_at
)
end