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.
This commit is contained in:
Robert Speicher
2015-09-01 17:59:08 -04:00
parent 7f75300573
commit 1ec68ea9c2
+1 -1
View File
@@ -27,7 +27,7 @@ module Gitlab
elsif node.has_attribute?('data-user-id')
user_can_reference_user?(node.attr('data-user-id'))
else
false
true
end
end