diff options
author | Felipe Artur <felipefac@gmail.com> | 2018-03-05 11:39:24 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2018-03-05 14:30:56 -0300 |
commit | 9946d0813c8e377ecf22552c4af075e563144712 (patch) | |
tree | 0f1399f16d1d6c70e41d60e11d0fa8a85db913dc /app/controllers | |
parent | dd071c4b6e9754a0abeec45ab2040d9e2d5a62b8 (diff) | |
download | gitlab-ce-9946d0813c8e377ecf22552c4af075e563144712.tar.gz |
Address review comments
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/boards/issues_controller.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/app/controllers/boards/issues_controller.rb b/app/controllers/boards/issues_controller.rb index 35571fa9603..19dbee84c11 100644 --- a/app/controllers/boards/issues_controller.rb +++ b/app/controllers/boards/issues_controller.rb @@ -9,6 +9,7 @@ module Boards before_action :authorize_read_issue, only: [:index] before_action :authorize_create_issue, only: [:create] before_action :authorize_update_issue, only: [:update] + skip_before_action :authenticate_user!, only: [:index] def index issues = Boards::Issues::ListService.new(board_parent, current_user, filter_params).execute @@ -74,13 +75,11 @@ module Boards end def project - @project ||= begin - if board.group_board? - Project.find(issue_params[:project_id]) - else - board_parent - end - end + @project ||= if board.group_board? + Project.find(issue_params[:project_id]) + else + board_parent + end end def move_params |