diff options
Diffstat (limited to 'app/models/project_team.rb')
-rw-r--r-- | app/models/project_team.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/project_team.rb b/app/models/project_team.rb index a65d271d262..ab6ea2aae36 100644 --- a/app/models/project_team.rb +++ b/app/models/project_team.rb @@ -17,7 +17,7 @@ class ProjectTeam if users.respond_to?(:each) add_users(users, access, current_user: current_user) else - add_user(users, access, current_user) + add_user(users, access, current_user: current_user) end end @@ -43,8 +43,8 @@ class ProjectTeam ) end - def add_user(user, access, current_user = nil) - add_users([user], access, current_user: current_user) + def add_user(user, access, current_user: nil, expires_at: nil) + add_users([user], access, current_user: current_user, expires_at: expires_at) end # Remove all users from project team |