Skip to content
Snippets Groups Projects
Commit 1ec68ea9 authored by Robert Speicher's avatar Robert Speicher
Browse files

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
No related branches found
No related tags found
1 merge request!1090Separate rendering of Markdown reference links from redacting those the user doesn't have access to and extracting referenced objects
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment