Commit 5fbcdf5e authored by http://jneen.net/'s avatar http://jneen.net/ Committed by Felipe Artur

prevent the support bot from referencing anything

parent 6ff85884
module Banzai
module ReferenceParser
module EE
module BaseParser
# override
# TODO: this override would make more sense in
# 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?
super
end
end
end
end
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