From cc57dac649e572fae66bfab252d110ace60aa09f Mon Sep 17 00:00:00 2001 From: luissian Date: Thu, 18 Apr 2024 17:14:10 +0200 Subject: [PATCH] Fixing the wetlab part of the issue #264, User can't search service/project by sample name --- wetlab/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wetlab/views.py b/wetlab/views.py index 91e5a1dd7..c23fa8db4 100644 --- a/wetlab/views.py +++ b/wetlab/views.py @@ -2884,7 +2884,7 @@ def display_sample_in_run(request, sample_run_id): if not wetlab.utils.common.is_wetlab_manager(request): # check if user is owner of the run or belongs to the shared user shared_user_ids = wetlab.utils.common.get_allowed_user_for_sharing(request.user) - if sample_run_obj.get_user_id not in shared_user_ids: + if sample_run_obj.get_user_id() not in shared_user_ids: return render( request, "wetlab/display_sample.html",