Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/event_create_service.rb')
-rw-r--r--app/services/event_create_service.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/services/event_create_service.rb b/app/services/event_create_service.rb
index b755f512772..1a4e691a059 100644
--- a/app/services/event_create_service.rb
+++ b/app/services/event_create_service.rb
@@ -100,8 +100,10 @@ class EventCreateService
end
end
- def join_project(project, current_user)
- create_event(project, current_user, :joined)
+ def join_source(source, current_user)
+ return unless source.is_a?(Project)
+
+ create_event(source, current_user, :joined)
end
def leave_project(project, current_user)