Skip to content

Commit

Permalink
use new lonely operator for simplified if statement (#1765)
Browse files Browse the repository at this point in the history
  • Loading branch information
straleyb authored and revgum committed Nov 8, 2018
1 parent 5f246da commit f29d854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/hyrax/base/_attribute_rows.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
<%= presenter.attribute_to_html(:duration, label: t('simple_form.labels.defaults.duration')) %>
<%= presenter.attribute_to_html(:isbn, label: t('simple_form.labels.defaults.isbn')) %>
<%= presenter.attribute_to_html(:issn, label: t('simple_form.labels.defaults.issn')) %>
<%= presenter.attribute_to_html(:depositor, label: t('simple_form.labels.defaults.depositor')) if current_user.admin? %>
<%= presenter.attribute_to_html(:depositor, label: t('simple_form.labels.defaults.depositor')) if current_user&.admin? %>

0 comments on commit f29d854

Please sign in to comment.