Commit 81fc63be authored by Robert Speicher's avatar Robert Speicher

Remove `current_user` context from markdown and gfm helpers

These helpers are no longer dependent on the current user state. Hooray!
parent 8db4628b
...@@ -46,7 +46,6 @@ module GitlabMarkdownHelper ...@@ -46,7 +46,6 @@ module GitlabMarkdownHelper
def markdown(text, context = {}) def markdown(text, context = {})
context.merge!( context.merge!(
current_user: current_user,
path: @path, path: @path,
project: @project, project: @project,
project_wiki: @project_wiki, project_wiki: @project_wiki,
...@@ -60,7 +59,6 @@ module GitlabMarkdownHelper ...@@ -60,7 +59,6 @@ module GitlabMarkdownHelper
# with a custom pipeline depending on the content being rendered # with a custom pipeline depending on the content being rendered
def gfm(text, options = {}) def gfm(text, options = {})
options.merge!( options.merge!(
current_user: current_user,
path: @path, path: @path,
project: @project, project: @project,
project_wiki: @project_wiki, project_wiki: @project_wiki,
......
...@@ -85,7 +85,6 @@ module Gitlab ...@@ -85,7 +85,6 @@ module Gitlab
no_header_anchors: options[:no_header_anchors], no_header_anchors: options[:no_header_anchors],
# ReferenceFilter # ReferenceFilter
current_user: options[:current_user],
only_path: options[:reference_only_path], only_path: options[:reference_only_path],
project: options[:project], project: options[:project],
......
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