Merge branch 'develop' of https://git.trustie.net/jacknudt/trustieforge into develop

This commit is contained in:
cxt 2016-09-18 17:01:21 +08:00
commit 9a8ff23984
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