Fix nil exception on if help:upload_notice doesn't exist.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<% if CurrentUser.can_upload? %>
|
||||
<div id="upload-guide-notice">
|
||||
<%= format_text(@upload_notice_wiki.body) %>
|
||||
<%= format_text(@upload_notice_wiki.try(&:body)) %>
|
||||
</div>
|
||||
|
||||
<% unless CurrentUser.can_upload_free? %>
|
||||
|
||||
Reference in New Issue
Block a user