summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-12-07 17:01:31 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-12-07 17:07:58 +0100
commit6ad56a229f0eb2c97cfdbe6722d2f154d989918e (patch)
treea703e0330c34eb32fbaea24645782b9db55d2bf0 /app/serializers
parentc2f72ad8a2ff02e310c1f3420342d10bec211277 (diff)
downloadgitlab-ce-6ad56a229f0eb2c97cfdbe6722d2f154d989918e.tar.gz
Add specs for TriggerVariableEntity
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/trigger_variable_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/trigger_variable_entity.rb b/app/serializers/trigger_variable_entity.rb
index 8845540cc30..4b28db42e76 100644
--- a/app/serializers/trigger_variable_entity.rb
+++ b/app/serializers/trigger_variable_entity.rb
@@ -4,5 +4,5 @@ class TriggerVariableEntity < Grape::Entity
include RequestAwareEntity
expose :key, :public
- expose :value, if: ->(_, _) { request.project.team.maintainer?(request.current_user) }
+ expose :value, if: ->(_, _) { can?(request.current_user, :admin_build, request.project) }
end