Commit babdf45a authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre 🌴

Use IssuesFinder instead of project.issues.visible_to_user

parent 4de6799e
......@@ -29,7 +29,11 @@ module Projects
def issue
@issue ||= project.issues.visible_to_user(current_user).find_by!(iid: params[:id])
@issue ||=, project_id:, state: 'all')
.where(iid: params[:id])
def authorize_read_issue!
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