Fix RedactorFilter
This commit is contained in:
parent
13f44822d9
commit
1a10945066
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ module Gitlab
|
|||
def user_can_reference?(node)
|
||||
if node.has_attribute?('data-reference-filter')
|
||||
reference_type = node.attr('data-reference-filter')
|
||||
reference_filter = reference_type.constantize
|
||||
reference_filter = Gitlab::Markdown.const_get(reference_type)
|
||||
|
||||
reference_filter.user_can_reference?(current_user, node, context)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue