diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0b4309ef5..3ab894c69 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -258,11 +258,13 @@ class ApplicationController < ActionController::Base if @attachment.container_type == "Memo" allowed = User.current.allowed_to?(:memos_attachments_download,nil,:global => true) elsif @attachment.container_type == "Project" - + return true elsif @attachment.container_type == "course" - + return true elsif @attachment.container_type == "contest" - + return true + else + return true end if allowed diff --git a/app/views/messages/_project_show.html.erb b/app/views/messages/_project_show.html.erb index eff5fa160..ad55e9be7 100644 --- a/app/views/messages/_project_show.html.erb +++ b/app/views/messages/_project_show.html.erb @@ -98,9 +98,9 @@