Skip to content

Commit af7d615

Browse files
author
John Pinto
committed
Refactored code for the Ethical Concerns block suggested during PR
review.
1 parent bdbfefa commit af7d615

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

app/views/orgs/_profile_form.html.erb

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,18 +200,15 @@
200200
</div>
201201
<% end %>
202202

203-
<div class="row">
204-
<% if current_user.can_super_admin? %>
203+
<% if current_user.can_org_admin? %>
204+
<div class="row">
205205
<fieldset class="col-sm-8">
206206
<%= org_perms_header_block %>
207207
<%= add_ro_ethical_concerns_block %>
208208
</fieldset>
209-
<% elsif current_user.can_org_admin? %>
210-
<%= org_perms_header_block %>
211-
<%= add_ro_ethical_concerns_block %>
212-
<% end %>
213-
</div>
214-
<hr>
209+
</div>
210+
<hr>
211+
<% end %>
215212

216213
<% if !org.new_record? %>
217214
<%= render partial: "orgs/external_identifiers",

0 commit comments

Comments
 (0)