Commit 6ff85884 authored by http://jneen.net/'s avatar http://jneen.net/ Committed by Felipe Artur

forbid the support bot from commenting in non-service-desk projects

parent 105684e8
......@@ -11,6 +11,11 @@ module EE
cannot! :push_code
cannot! :push_code_to_protected_branches
end
if @user && @user.support_bot? && !@subject.service_desk_enabled?
cannot! :create_note
cannot! :read_project
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