项目讨论区附件下载权限
This commit is contained in:
parent
4c8144d86b
commit
030056fd0d
|
@ -219,11 +219,7 @@ module Redmine
|
|||
|
||||
if a && !attachment['is_public_checkbox']
|
||||
# 考虑到更新操作,所以全部设置为公开,私有项目、课程是不能访问的
|
||||
if is_public
|
||||
a.is_public = true
|
||||
else
|
||||
a.is_public = false
|
||||
end
|
||||
elsif a && attachment['is_public_checkbox']
|
||||
a.is_public = true
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue