summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-03-05 11:39:24 -0300
committerFelipe Artur <felipefac@gmail.com>2018-03-05 14:30:56 -0300
commit9946d0813c8e377ecf22552c4af075e563144712 (patch)
tree0f1399f16d1d6c70e41d60e11d0fa8a85db913dc /app/controllers
parentdd071c4b6e9754a0abeec45ab2040d9e2d5a62b8 (diff)
downloadgitlab-ce-9946d0813c8e377ecf22552c4af075e563144712.tar.gz
Address review comments
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/boards/issues_controller.rb13
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