diff --git a/atlas/templates/atlas/case_display_block.html b/atlas/templates/atlas/case_display_block.html index 423fcd52..65945248 100755 --- a/atlas/templates/atlas/case_display_block.html +++ b/atlas/templates/atlas/case_display_block.html @@ -50,7 +50,9 @@ diff --git a/atlas/views.py b/atlas/views.py index 841321e2..6442805a 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -338,13 +338,15 @@ def finding_detail(request, pk): @login_required -@user_is_author_or_atlas_editor def author_detail(request, pk): # logging.debug(Author.objects.all()) # author = get_object_or_404(Author, pk=pk) author = User.objects.get(pk=pk) - atlas = Case.objects.filter(author=pk) + if request.user.pk == pk: + atlas = Case.objects.filter(author=pk) + else: + atlas = Case.objects.filter(author=pk, open_access=True) return render( request, "atlas/category_detail.html", {"category": author, "atlas": atlas} diff --git a/helpers/images.py b/helpers/images.py index 2cce0ff9..f0f27518 100644 --- a/helpers/images.py +++ b/helpers/images.py @@ -216,4 +216,5 @@ def get_image_hash(img, dataset=None, hash_type="blake3", direct_pixel_data=True print("BAD") return hash, False - return hash, is_dicom \ No newline at end of file + return hash, is_dicom +