Commit d4874fb9 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Pass issue instead project to can? method call on IssueLinks::CreateService

parent 813c62c7
......@@ -39,7 +39,7 @@ module IssueLinks
extractor.analyze(text)
extractor.issues.select do |issue|
can?(current_user, :admin_issue_link, issue.project)
can?(current_user, :admin_issue_link, issue)
end
end
end
......
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