Skip to content

Commit

Permalink
addressing comments - updated access policy import and the styling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Rutvikrj26 committed Aug 20, 2024
1 parent a474a24 commit 51d2bec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions physionet-django/project/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
has_s3_credentials,
files_sent_to_S3,
)
from physionet.settings.base import ALLOWED_ACCESS_POLICIES
from django.db.models import F, DateTimeField, ExpressionWrapper

LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -829,7 +828,7 @@ def project_access(request, project_slug, **kwargs):
return render(request, 'project/project_access.html', {
'project': project, 'access_form': access_form,
'is_submitting': kwargs['is_submitting'],
'access_policy_choices': ALLOWED_ACCESS_POLICIES,
'access_policy_choices': settings.ALLOWED_ACCESS_POLICIES,
})


Expand Down
4 changes: 2 additions & 2 deletions physionet-django/templates/about/access_policies.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<li><strong>Credentialed</strong>: Only {{ SITE_NAME }} credentialed users who sign a DUA for the project can access the files. This tier is only for sensitive databases. Please <a href="{% url 'static_view' static_url='about' %}#contact_us" target="_blank"> contact us</a> beforehand if you would like to contribute such a resource.</li>
{% endif %}
{% if "CONTRIBUTOR_REVIEW" in access_policy_choices %}
<li><strong>Contributor Review</strong>: Only {{ SITE_NAME }} credentials who sign a DUA and submit a project plan approved by the data holder may access the files.</li>
<li><strong>Contributor Review</strong>: Only {{ SITE_NAME }} credentialed users who sign a DUA and submit a project plan approved by the data contributor may access the files.</li>
{% endif %}
</ol>
{% if "OPEN" in access_policy_choices %}
<p>We strongly encourage selecting the <strong>open</strong> access policy.</p>
{% endif %}
{% endif %}

0 comments on commit 51d2bec

Please sign in to comment.