diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-12-07 17:01:31 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-12-07 17:07:58 +0100 |
commit | 6ad56a229f0eb2c97cfdbe6722d2f154d989918e (patch) | |
tree | a703e0330c34eb32fbaea24645782b9db55d2bf0 /app/serializers | |
parent | c2f72ad8a2ff02e310c1f3420342d10bec211277 (diff) | |
download | gitlab-ce-6ad56a229f0eb2c97cfdbe6722d2f154d989918e.tar.gz |
Add specs for TriggerVariableEntity
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/trigger_variable_entity.rb | 2 |
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 |