Skip to content

Commit fd1d775

Browse files
compwronCopilot
andauthored
Update app/views/case_contacts/_case_contact.html.erb
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9201608 commit fd1d775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/case_contacts/_case_contact.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<% if Pundit.policy(current_user, contact).update? %>
3939
<%= render "case_contacts/followup", contact: contact, followup: contact.requested_followup %>
4040
<div class="mr-2">
41-
<% if (current_user.casa_admin? || current_user.supervisor?) && contact.creator != current_user %>
41+
<% if (current_user.casa_admin? || current_user.supervisor?) && contact.creator&.volunteer? && contact.creator != current_user %>
4242
<%= link_to case_contacts_impersonate_and_edit_path(creator_id: contact.creator.id, casa_case_id: @casa_case), class: "text-danger", data: { turbo: false } do %>
4343
<i class="lni lni-pencil-alt"></i> View/Edit
4444
<% end %>

0 commit comments

Comments
 (0)