diff --git a/physionet-django/project/views.py b/physionet-django/project/views.py index 9a83ab4b06..8dd0b2db7e 100644 --- a/physionet-django/project/views.py +++ b/physionet-django/project/views.py @@ -825,9 +825,11 @@ def project_access(request, project_slug, **kwargs): else: access_form = forms.AccessMetadataForm(instance=project, editable=editable) - - return render(request, 'project/project_access.html', {'project':project, - 'access_form':access_form, 'is_submitting':kwargs['is_submitting']}) + return render(request, 'project/project_access.html', { + 'project': project, 'access_form': access_form, + 'is_submitting': kwargs['is_submitting'], + 'access_policy_choices': settings.ALLOWED_ACCESS_POLICIES, + }) @project_auth(auth_mode=0, post_auth_mode=2) diff --git a/physionet-django/templates/about/access_policies.html b/physionet-django/templates/about/access_policies.html index c1be1f3512..fd7713d4a4 100644 --- a/physionet-django/templates/about/access_policies.html +++ b/physionet-django/templates/about/access_policies.html @@ -2,9 +2,20 @@ metadata of all published projects are publically visible. The following access policies control access to the files:
We strongly encourage selecting the open access policy.
+{% if "OPEN" in access_policy_choices %} +We strongly encourage selecting the open access policy.
+{% endif %}