Commit e72d2acf authored by Felipe Artur's avatar Felipe Artur

Address review comments

parent 3459b6aa
......@@ -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,14 +75,12 @@ module Boards
end
def project
@project ||= begin
if board.group_board?
@project ||= if board.group_board?
Project.find(issue_params[:project_id])
else
board_parent
end
end
end
def move_params
params.permit(:board_id, :id, :from_list_id, :to_list_id, :move_before_id, :move_after_id)
......
......@@ -39,14 +39,12 @@ module BoardsHelper
end
def current_board_path(board)
@current_board_path ||= begin
if board.group_board?
@current_board_path ||= if board.group_board?
group_board_path(current_board_parent, board)
else
project_board_path(current_board_parent, board)
end
end
end
def current_board_parent
@current_board_parent ||= @group || @project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment