Commit 2fa187ab authored by Jake Lear's avatar Jake Lear

Apply 1 suggestion(s) to 1 file(s)

parent 9208e761
...@@ -45,7 +45,7 @@ module Spam ...@@ -45,7 +45,7 @@ module Spam
attr_reader :user, :context attr_reader :user, :context
def allowlisted?(user) def allowlisted?(user)
user.respond_to?(:gitlab_employee) && user.gitlab_employee? || user.respond_to?(:gitlab_bot) && user.gitlab_bot? user.try(:gitlab_employee?) || user.try(:gitlab_bot?)
end end
def perform_spam_service_check(api) def perform_spam_service_check(api)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment