Skip to content

Commit

Permalink
Remove obsolete referring samples logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Oct 9, 2024
1 parent 355d381 commit c956119
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/helpers/samples_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,7 @@ def seek_strain_attribute_display(value)
def sample_type_link(sample, user=User.current_user)
return nil if Seek::Config.isa_json_compliance_enabled && !sample.sample_type.template_id.nil?

if (sample.sample_type.can_view?(user))
link_to sample.sample_type.title, sample.sample_type
else
link_to sample.sample_type.title, sample_type_path(sample.sample_type, referring_sample_id: sample.id)
end
link_to sample.sample_type.title, sample.sample_type if sample.sample_type.can_view?(user)
end

def sample_type_list_item_attribute(attribute, sample)
Expand Down

0 comments on commit c956119

Please sign in to comment.