gitlab-org--gitlab-foss/app/models/blob_viewer/readme.rb

15 lines
271 B
Ruby
Raw Normal View History

2017-05-14 15:01:12 -04:00
module BlobViewer
class Readme < Base
include Auxiliary
include Static
self.partial_name = 'readme'
self.file_types = %i(readme)
self.binary = false
def visible_to?(current_user)
can?(current_user, :read_wiki, project)
end
end
end