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:

    -
  1. Open: Anyone can access the files, as long as they conform to the terms of the specified +{% if "OPEN" in access_policy_choices %} +
  2. Open: Anyone can access the files, as long as they conform to the terms of the specified license.
  3. -
  4. Restricted: Only logged in users who sign a data use agreement (DUA) for the project can access the files.
  5. -
  6. Credentialed: Only {{ SITE_NAME }} credentialed users who sign a DUA for the project can access the files. This tier is only for sensitive databases. Please contact us beforehand if you would like to contribute such a resource.
  7. +{% endif %} +{% if "RESTRICTED" in access_policy_choices %} +
  8. Restricted: Only logged in users who sign a data use agreement (DUA) for the project can access the files.
  9. +{% endif %} +{% if "CREDENTIALED" in access_policy_choices %} +
  10. Credentialed: Only {{ SITE_NAME }} credentialed users who sign a DUA for the project can access the files. This tier is only for sensitive databases. Please contact us beforehand if you would like to contribute such a resource.
  11. +{% endif %} +{% if "CONTRIBUTOR_REVIEW" in access_policy_choices %} +
  12. Contributor Review: Only {{ SITE_NAME }} credentialed users who sign a DUA and submit a project plan approved by the data contributor may access the files.
  13. +{% endif %}
-

We strongly encourage selecting the open access policy.

+{% if "OPEN" in access_policy_choices %} +

We strongly encourage selecting the open access policy.

+{% endif %}