Fix nil exception on if help:upload_notice doesn't exist.

This commit is contained in:
evazion
2016-11-21 01:40:37 -06:00
parent 961fb94adf
commit 1d3ec05348

View File

@@ -4,7 +4,7 @@
<% if CurrentUser.can_upload? %> <% if CurrentUser.can_upload? %>
<div id="upload-guide-notice"> <div id="upload-guide-notice">
<%= format_text(@upload_notice_wiki.body) %> <%= format_text(@upload_notice_wiki.try(&:body)) %>
</div> </div>
<% unless CurrentUser.can_upload_free? %> <% unless CurrentUser.can_upload_free? %>