Commit 538c76f0 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Remove unnecessary read check - already done by ListService

parent 975fac7c
module Projects
class IssueLinksController < ApplicationController
before_action :authorize_read_issue_link!
before_action :authorize_admin_issue_link!, only: [:create, :destroy]
def index
......@@ -36,10 +35,6 @@ module Projects
render_404 unless can?(current_user, :admin_issue_link, @project)
end
def authorize_read_issue_link!
render_404 unless can?(current_user, :read_issue_link, @project)
end
def issue
@issue ||=
IssuesFinder.new(current_user, project_id: project.id)
......
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