<% if can_manage_protocol_users?(protocol) %> <%= link_to edit_access_permissions_protocol_path(protocol), class: 'protocol-users-link', data: { action: 'remote-modal' } do %> <%= render partial: 'protocols/index/users_list', locals: { protocol: protocol } %> <% end %> <% else %> <%= link_to access_permissions_protocol_path(protocol), class: 'protocol-users-link', data: { action: 'remote-modal' } do %> <%= render partial: 'protocols/index/users_list', locals: { protocol: protocol } %> <% end %> <% end %>