Fix nil exception on if help:upload_notice doesn't exist.
This commit is contained in:
@@ -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? %>
|
||||||
|
|||||||
Reference in New Issue
Block a user