This commit is contained in:
sw 2015-07-21 15:40:48 +08:00
commit d0e564a589
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ private
end
def has_login
unless @attachment.container_type == "PhoneAppVersion"
unless @attachment && @attachment.container_type == "PhoneAppVersion"
render_403 unless User.current.logged?
end
end