diff --git a/app/controllers/projects/boards/issues_controller.rb b/app/controllers/projects/boards/issues_controller.rb index 7bc3aacb9bf..2d894b3dd4a 100644 --- a/app/controllers/projects/boards/issues_controller.rb +++ b/app/controllers/projects/boards/issues_controller.rb @@ -29,7 +29,11 @@ module Projects private def issue - @issue ||= project.issues.visible_to_user(current_user).find_by!(iid: params[:id]) + @issue ||= + IssuesFinder.new(current_user, project_id: project.id, state: 'all') + .execute + .where(iid: params[:id]) + .first! end def authorize_read_issue!