diff options
Diffstat (limited to 'lib/banzai/filter/repository_link_filter.rb')
-rw-r--r-- | lib/banzai/filter/repository_link_filter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/repository_link_filter.rb b/lib/banzai/filter/repository_link_filter.rb index ddc3f5cf715..e06126bdf0f 100644 --- a/lib/banzai/filter/repository_link_filter.rb +++ b/lib/banzai/filter/repository_link_filter.rb @@ -204,7 +204,7 @@ module Banzai end def repo_visible_to_user? - project && Ability.allowed?(current_user, :download_code, project) + project && Ability.allowed?(current_user, :read_code, project) end def ref |