公共贴吧附件资源修改为未登录也可以下载,项目列表私有标签错误

This commit is contained in:
z9hang 2014-09-16 10:27:20 +08:00
parent 489f998530
commit 8cc14546f8
2 changed files with 3 additions and 3 deletions

View File

@ -361,7 +361,7 @@ private
def login_without_softapplication
referer = request.headers['Referer']
require_login unless referer =~ /softapplication/
require_login unless referer =~ /softapplication/ || referer =~ /memos/
end
def renderTag

View File

@ -181,7 +181,7 @@ module ProjectsHelper
# unless project.is_public == 1
if project.is_public != 1
s = "<span class='private_project'>#{l(:lable_private)}</span>".html_safe
s = "<span class='private_project'>#{l(:label_private)}</span>".html_safe
else
s = "".html_safe
end
@ -197,7 +197,7 @@ module ProjectsHelper
if !project.is_public
# end longjun
s = "<span class='private_project'>#{l(:lable_private)}</span>".html_safe
s = "<span class='private_project'>#{l(:label_private)}</span>".html_safe
else
s = "".html_safe
end