summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-19 18:58:52 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-19 18:58:52 +0100
commit18f25bc94282a29029721ceeb9b9c6db354ce45f (patch)
tree69ec753cd461ab41d36732e88e809ddc43d0ae39 /app/services
parent0115ad66d264f4670f241251acd3e36991134576 (diff)
downloadgitlab-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 'app/services')
-rw-r--r--app/services/issues/move_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/issues/move_service.rb b/app/services/issues/move_service.rb
index 45b4b50c0f6..892acc8c04d 100644
--- a/app/services/issues/move_service.rb
+++ b/app/services/issues/move_service.rb
@@ -77,7 +77,8 @@ module Issues
end
def unfold_references(content)
- unfolder = Gitlab::Gfm::ReferenceUnfolder.new(content, @old_project)
+ unfolder = Gitlab::Gfm::ReferenceUnfolder.new(content, @old_project,
+ @current_user)
unfolder.unfold(@new_project)
end