Skip to content

Commit

Permalink
Fixing the wetlab part of the issue #264, User can't search service/p…
Browse files Browse the repository at this point in the history
…roject by sample name
  • Loading branch information
luissian committed Apr 18, 2024
1 parent 333aa23 commit cc57dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wetlab/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cc57dac

Please sign in to comment.