diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-16 06:11:39 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-16 06:11:39 +0300 |
commit | 37d1a6b416a10e64ba9194aacf7da97a5e30140f (patch) | |
tree | 54494e4ddcc6e128e2a0e11dc874cced46308918 /app/services/notification_service.rb | |
parent | 21fc10ad5a7c829e64112fac37727f31f072ef33 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r-- | app/services/notification_service.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 1224cf80b76..660d9891e46 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -16,6 +16,16 @@ # NotificationService.new.async.new_issue(issue, current_user) # class NotificationService + # These should not be called by the MailScheduler::NotificationServiceWorker - + # what would it even mean? + EXCLUDED_ACTIONS = %i[async].freeze + + def self.permitted_actions + @permitted_actions ||= gitlab_extensions.flat_map do |klass| + klass.public_instance_methods(false) - EXCLUDED_ACTIONS + end.to_set + end + class Async attr_reader :parent |