Commit 058de0d4 authored by jhampton's avatar jhampton

Conditionally send variable values

We only want to send trigger variable values if the user is a
maintainer.
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment