From f29d8547f76827a60d662094b4cd944ba59c9549 Mon Sep 17 00:00:00 2001 From: "Brandon R. Straley" Date: Thu, 8 Nov 2018 09:20:41 -0800 Subject: [PATCH] use new lonely operator for simplified if statement (#1765) --- app/views/hyrax/base/_attribute_rows.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/hyrax/base/_attribute_rows.html.erb b/app/views/hyrax/base/_attribute_rows.html.erb index 613d4e374..b566b9c37 100644 --- a/app/views/hyrax/base/_attribute_rows.html.erb +++ b/app/views/hyrax/base/_attribute_rows.html.erb @@ -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? %>