mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-13 17:40:40 +00:00
checking terms of use confirmation update
This commit is contained in:
@ -115,14 +115,12 @@
|
||||
{
|
||||
dismissible: false,
|
||||
onCloseEnd: () => {
|
||||
Requests.users.entity.settings.acceptTermsOfUse();
|
||||
Requests.users.entity.acceptTermsOfUse();
|
||||
}
|
||||
}
|
||||
);
|
||||
{% if current_user.is_authenticated %}
|
||||
{% if not current_user.terms_of_use_accepted %}
|
||||
{% if current_user.is_authenticated and not current_user.terms_of_use_accepted %}
|
||||
termsOfUseModal.M_Modal.open();
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
</script>
|
||||
|
@ -38,7 +38,9 @@
|
||||
{# {% if current_user.is_authenticated %}
|
||||
{% include "_roadmap.html.j2" %}
|
||||
{% endif %} #}
|
||||
{% include "_terms_of_use_modal.html.j2" %}
|
||||
{% if current_user.is_authenticated and not current_user.terms_of_use_accepted %}
|
||||
{% include "_terms_of_use_modal.html.j2" %}
|
||||
{% endif %}
|
||||
{% endblock modals %}
|
||||
</div>
|
||||
{% endblock main %}
|
||||
|
Reference in New Issue
Block a user