Skip to content

Commit

Permalink
Merge branch 'hotfix/24.11.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
mfraezz committed Dec 19, 2024
2 parents 9892ad5 + 1f3be80 commit 010c1ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ def get_globals():
def is_private_link_anonymous_view():
# Avoid circular import
from osf.models import PrivateLink
view_only = request.args.get('view_only')
if not view_only:
return False
try:
return PrivateLink.objects.filter(key=request.args.get('view_only')).values_list('anonymous', flat=True).get()
return PrivateLink.objects.filter(key=view_only).values_list('anonymous', flat=True).get()
except PrivateLink.DoesNotExist:
return False

Expand Down

0 comments on commit 010c1ce

Please sign in to comment.