diff options
author | David Alexander <davidpaulalexander@gmail.com> | 2016-03-14 09:13:35 -0400 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-06-14 12:12:02 +0200 |
commit | 17c22156c5fa5663aae65178ed38cbeef9a80b7e (patch) | |
tree | 5bd90d34c7360c892f6ea57dd1d3e4a6350a51cd /app/models/members | |
parent | 0c0ef7dfb6afb1695b62037fc0fa5aba6ce697d7 (diff) | |
download | gitlab-ce-17c22156c5fa5663aae65178ed38cbeef9a80b7e.tar.gz |
Initial implementation of user access request to projects
Diffstat (limited to 'app/models/members')
-rw-r--r-- | app/models/members/project_member.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/models/members/project_member.rb b/app/models/members/project_member.rb index 46955b430f3..9db8db8450d 100644 --- a/app/models/members/project_member.rb +++ b/app/models/members/project_member.rb @@ -107,6 +107,12 @@ class ProjectMember < Member user.todos.where(project_id: source_id).destroy_all if user end + def send_request_access + notification_service.request_access_project_member(self) + + super + end + def send_invite notification_service.invite_project_member(self, @raw_invite_token) @@ -136,6 +142,18 @@ class ProjectMember < Member super end + def after_accept_request_access + notification_service.accept_project_request_access(self) + + super + end + + def after_decline_request_access + notification_service.decline_project_request_access(self) + + super + end + def after_accept_invite notification_service.accept_project_invite(self) |