summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-01 17:43:35 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-09-01 17:59:08 -0400
commit1ec68ea9c208317b6d981da4bf7d022ccd62bb3e (patch)
treef03d563913658d64e3fc4100936e281883260210
parent7f75300573ff8f8e610bf4b0a3b4f2832552a1e9 (diff)
downloadgitlab-ce-1ec68ea9c208317b6d981da4bf7d022ccd62bb3e.tar.gz
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.
-rw-r--r--lib/gitlab/markdown/redactor_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markdown/redactor_filter.rb b/lib/gitlab/markdown/redactor_filter.rb
index 9faee4567ae..92925f866a9 100644
--- a/lib/gitlab/markdown/redactor_filter.rb
+++ b/lib/gitlab/markdown/redactor_filter.rb
@@ -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