提交 058de0d4 编写于 作者: J jhampton

Conditionally send variable values

We only want to send trigger variable values if the user is a
maintainer.
上级 6c83c2d8
......@@ -3,5 +3,6 @@
class TriggerVariableEntity < Grape::Entity
include RequestAwareEntity
expose :key, :value, :public
expose :key, :public
expose :value, if: ->(_, _) { request.project.team.maintainer?(request.current_user) }
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册