博客资源允许下载
This commit is contained in:
parent
85e2eab8c3
commit
14912078ee
|
@ -1934,6 +1934,8 @@ module ApplicationHelper
|
||||||
candown = true
|
candown = true
|
||||||
elsif attachment.container.class.to_s=="StudentWork"
|
elsif attachment.container.class.to_s=="StudentWork"
|
||||||
candown = true
|
candown = true
|
||||||
|
elsif attachment.container.class.to_s=="BlogComment" #博客资源允许下载
|
||||||
|
candown = true
|
||||||
elsif attachment.container.class.to_s == "User"
|
elsif attachment.container.class.to_s == "User"
|
||||||
candown = (attachment.is_public == 1 || attachment.is_public == true || attachment.author_id == User.current.id)
|
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
|
elsif attachment.container_type == "Bid" && attachment.container && attachment.container.courses
|
||||||
|
|
Loading…
Reference in New Issue