gitlab-org--gitlab-foss/app/models/blob_viewer/readme.rb
2017-05-17 13:33:39 -05:00

14 lines
271 B
Ruby

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