|
|
|
@ -73,7 +73,7 @@ class AttachmentsController < ApplicationController
|
|
|
|
|
if candown || User.current.admin? || User.current.id == @attachment.author_id
|
|
|
|
|
@attachment.increment_download
|
|
|
|
|
if stale?(:etag => @attachment.digest)
|
|
|
|
|
convered_file = @attachment.disk_filename
|
|
|
|
|
convered_file = @attachment.diskfile
|
|
|
|
|
unless pdf?(convered_file)
|
|
|
|
|
convered_file = File.join(Rails.root, "files", "convered_office", @attachment.disk_filename + ".pdf")
|
|
|
|
|
end
|
|
|
|
|