diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-13 21:31:49 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-13 21:31:49 +0200 |
commit | 4d0d5e79ba4317cedfb2b0304ac5d376ad781b1a (patch) | |
tree | fdbf97a50f8c8ccde579c07e340079a50cf407ef /app/controllers/projects/refs_controller.rb | |
parent | e261de255dfff71f5acc7d33f339a30a3cb32ab9 (diff) | |
download | gitlab-ce-4d0d5e79ba4317cedfb2b0304ac5d376ad781b1a.tar.gz |
Factor authorize_push! and authorize_code_access!
with existing method_missing. Pattern already used extensively,
so let's be consistent and use it everywhere.
Diffstat (limited to 'app/controllers/projects/refs_controller.rb')
-rw-r--r-- | app/controllers/projects/refs_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/refs_controller.rb b/app/controllers/projects/refs_controller.rb index 7997c726fbb..9ac189a78b3 100644 --- a/app/controllers/projects/refs_controller.rb +++ b/app/controllers/projects/refs_controller.rb @@ -3,7 +3,7 @@ class Projects::RefsController < Projects::ApplicationController # Authorize before_filter :authorize_read_project! - before_filter :authorize_code_access! + before_filter :authorize_download_code! before_filter :require_non_empty_project def switch |