Commit fd0dcf41 authored by Peter Leitzen's avatar Peter Leitzen

Use more generic bot? instead of support_bot?

We kept support_bot? where the actual Service Desk user is checked
parent 1342da95
......@@ -24,7 +24,7 @@ module EE
# override
def check_for_spam?
author.support_bot? || super
author.bot? || super
end
# override
......@@ -48,7 +48,7 @@ module EE
# Making the support bot subscribed to every issue is not as bad as it
# seems, though, since it isn't permitted to :receive_notifications,
# and doesn't actually show up in the participants list.
user.support_bot? || super
user.bot? || super
end
# override
......
......@@ -9,7 +9,7 @@ module Banzai
# the policies framework, but CE currently
# manually checks for team membership and the like.
def nodes_user_can_reference(user, nodes)
return [] if user.support_bot?
return [] if user.bot?
super
end
......
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