diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index ccbd0df..56fdc85 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -507,7 +507,11 @@ class AnnouncementsController < ApplicationController if @ext == "png" || @ext == "jpg" || @ext == "bmp" || @ext == "pdf" render "archives/download_file.html",:layout=>false else - send_file(@path) + if (current_site.accessibility_mode rescue false) + render "redirect_to_file",:layout=>false + else + send_file(@path) + end end else render :file => "#{Rails.root}/app/views/errors/403.html", :layout => false, :status => :not_found, :content_type => 'text/html'