Skip to content

Commit 4147370

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

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/views/orgs/_profile_form.html.erb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,11 @@
201201
<% end %>
202202

203203
<div class="row">
204-
<% if current_user.can_super_admin? %>
204+
<% if current_user.can_org_admin? %>
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 %>
212209
<% end %>
213210
</div>
214211
<hr>

0 commit comments

Comments
 (0)