diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:08:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:08:37 +0300 |
commit | 1ad2f1981f05721d92d04c490cfc0f234737fec1 (patch) | |
tree | 2f7cb8bff250153f12d6db1a35a17eed81589b25 /app/models/snippet.rb | |
parent | 93c966ae2abeb481cfa894351b74f954e406582d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index 68957dd6b22..dd76f2c3c84 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -246,7 +246,7 @@ class Snippet < ApplicationRecord notes.includes(:author) end - def check_for_spam? + def check_for_spam?(user:) visibility_level_changed?(to: Snippet::PUBLIC) || (public? && (title_changed? || content_changed?)) end |