Fix RedactorFilter

This commit is contained in:
Douwe Maan 2015-12-08 13:40:23 +01:00
parent 13f44822d9
commit 1a10945066
1 changed files with 1 additions and 1 deletions

View File

@ -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