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