diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-19 18:58:52 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-19 18:58:52 +0100 |
commit | 18f25bc94282a29029721ceeb9b9c6db354ce45f (patch) | |
tree | 69ec753cd461ab41d36732e88e809ddc43d0ae39 /lib | |
parent | 0115ad66d264f4670f241251acd3e36991134576 (diff) | |
download | gitlab-ce-18f25bc94282a29029721ceeb9b9c6db354ce45f.tar.gz |
Update reference unfolder according to recent ability changes
Commit 43d8bdb4f048cbeb5675ed9120cb1aeb415b9586 introduced additional
checks for permissions to read issue in references extractor.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gfm/reference_unfolder.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/gfm/reference_unfolder.rb b/lib/gitlab/gfm/reference_unfolder.rb index cf8de88b856..94c09761960 100644 --- a/lib/gitlab/gfm/reference_unfolder.rb +++ b/lib/gitlab/gfm/reference_unfolder.rb @@ -29,9 +29,10 @@ module Gitlab # http://gitlab.com/some/link/#1234, and code `puts #1234`' # class ReferenceUnfolder - def initialize(text, project) + def initialize(text, project, user) @text = text @project = project + @user = user @original = markdown(text) end @@ -61,7 +62,7 @@ module Gitlab def referables return @referables if @referables - extractor = Gitlab::ReferenceExtractor.new(@project) + extractor = Gitlab::ReferenceExtractor.new(@project, @user) extractor.analyze(@text) @referables = extractor.all end |