diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index aed57010b..81d42c1e6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1936,6 +1936,8 @@ module ApplicationHelper candown = true elsif attachment.container.class.to_s=="BlogComment" #博客资源允许下载 candown = true + elsif attachment.container.class.to_s=="Memo" #论坛资源允许下载 + candown = true elsif attachment.container.class.to_s == "User" candown = (attachment.is_public == 1 || attachment.is_public == true || attachment.author_id == User.current.id) elsif attachment.container_type == "Bid" && attachment.container && attachment.container.courses