diff options
author | Robert Speicher <robert@gitlab.com> | 2016-02-08 23:33:44 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-02-08 23:33:44 +0000 |
commit | 201fb4c7e3f9ab4265f87f548ae22bb4008015c9 (patch) | |
tree | 9f203162f734ac6e214c9725b2479e5f3fccc021 /lib/api/variables.rb | |
parent | 2ad872382b49d4802a9ea5e2c7e8773949d83b2a (diff) | |
parent | 311f407651e9ad1859bb0e9b6b9d6de79fde1a3d (diff) | |
download | gitlab-ce-201fb4c7e3f9ab4265f87f548ae22bb4008015c9.tar.gz |
Merge branch 'ci-permissions' into 'master'
Limit guest access to builds
Closes https://dev.gitlab.org/gitlab/gitlabhq/issues/2646
See merge request !1942
Diffstat (limited to 'lib/api/variables.rb')
-rw-r--r-- | lib/api/variables.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/variables.rb b/lib/api/variables.rb index d9a055f6c92..f6495071a11 100644 --- a/lib/api/variables.rb +++ b/lib/api/variables.rb @@ -2,7 +2,7 @@ module API # Projects variables API class Variables < Grape::API before { authenticate! } - before { authorize_admin_project } + before { authorize! :admin_build, user_project } resource :projects do # Get project variables |