From ee00d7d20a8a68c9f3ad6dfd9447b6b6cc020e27 Mon Sep 17 00:00:00 2001 From: z9hang Date: Wed, 17 Sep 2014 15:58:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B4=E5=90=A7=E8=B5=84=E6=BA=90=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=BC=80=E6=94=BE=EF=BC=8C=E5=88=A4=E6=96=AD=E8=B4=B4?= =?UTF-8?q?=E5=90=A7=E8=B5=84=E6=BA=90=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E8=B5=84=E6=BA=90=E7=9A=84container=5Ftype=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=B8=BA=E2=80=98Memo=E2=80=99=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 62bef8fb1..2d5149c09 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -361,7 +361,7 @@ private def login_without_softapplication referer = request.headers['Referer'] - require_login unless referer =~ /softapplication/ || referer =~ /memos/ + require_login unless referer =~ /softapplication/ || @attachment.container_type == "Memo" end def renderTag