summaryrefslogtreecommitdiff
path: root/app/controllers/projects/commit_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-21 11:43:12 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-21 11:43:12 +0300
commit8ad9a75f88f7165463e9f5f0c5d8ff0c3556d4ca (patch)
treec48d734f96ce6ef896e7e3396ba0105a4fd3bee5 /app/controllers/projects/commit_controller.rb
parent85ddf1b918209d727cb91a3054458b7831ae1157 (diff)
parent4d0d5e79ba4317cedfb2b0304ac5d376ad781b1a (diff)
downloadgitlab-ce-8ad9a75f88f7165463e9f5f0c5d8ff0c3556d4ca.tar.gz
Merge pull request #8030 from cirosantilli/factor-authorize
Factor authorize_push! and authorize_code_access!
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r--app/controllers/projects/commit_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb
index df09ee7ed9d..cf05e6ea220 100644
--- a/app/controllers/projects/commit_controller.rb
+++ b/app/controllers/projects/commit_controller.rb
@@ -4,7 +4,7 @@
class Projects::CommitController < Projects::ApplicationController
# Authorize
before_filter :authorize_read_project!
- before_filter :authorize_code_access!
+ before_filter :authorize_download_code!
before_filter :require_non_empty_project
before_filter :commit