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:
parent
7f75300573
commit
1ec68ea9c2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue