项目讨论区附件下载权限

This commit is contained in:
huang 2016-09-18 16:51:52 +08:00
parent 4c8144d86b
commit 030056fd0d
1 changed files with 1 additions and 5 deletions

View File

@ -219,11 +219,7 @@ module Redmine
if a && !attachment['is_public_checkbox'] if a && !attachment['is_public_checkbox']
# 考虑到更新操作,所以全部设置为公开,私有项目、课程是不能访问的 # 考虑到更新操作,所以全部设置为公开,私有项目、课程是不能访问的
if is_public a.is_public = true
a.is_public = true
else
a.is_public = false
end
elsif a && attachment['is_public_checkbox'] elsif a && attachment['is_public_checkbox']
a.is_public = true a.is_public = true
end end