Commit 1ec68ea9 authored by Robert Speicher's avatar Robert Speicher

Default `user_can_reference?` to true when no attributes match

Now, a reference link with a `.gfm` class but without one of our
`data-*-id` attributes should be shown to the user rather than hidden.
parent 7f753005
...@@ -27,7 +27,7 @@ module Gitlab ...@@ -27,7 +27,7 @@ module Gitlab
elsif node.has_attribute?('data-user-id') elsif node.has_attribute?('data-user-id')
user_can_reference_user?(node.attr('data-user-id')) user_can_reference_user?(node.attr('data-user-id'))
else else
false true
end end
end end
......
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