Skip to content

Commit

Permalink
Fix language switcher CSRF error when interacting before login #11528 (
Browse files Browse the repository at this point in the history
…#11529)

* Fix language switcher CSRF error when interacting before login #11528
  • Loading branch information
jacobtylerwalls authored Oct 21, 2024
1 parent 426e8cd commit f90e519
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions arches/app/templates/base-manager.htm
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ <h1 class="page-header text-overflow ep-graph-title">
{% endif %}

{% if show_language_swtich %}
{% csrf_token %}
{% get_current_language as LANGUAGE_CODE %}
<li aria-label="{% trans 'Choose your language' %}">
<div class="lang-switch ep-tools ep-tools-right" style="max-width: none;" data-bind='component: {
Expand Down
1 change: 1 addition & 0 deletions arches/app/templates/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ <h1>{% blocktrans %}Arches | {{version}}{% endblocktrans %}</h1>
</li>
{% endif %}
{% if show_language_swtich %}
{% csrf_token %}
<li>
{% get_current_language as LANGUAGE_CODE %}
<div class="lang-switch" style="max-width: none;" data-bind='component: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ <h1>{% blocktrans %}Arches | {{version}}{% endblocktrans %}</h1>
</li>
{% endif %}
{% if show_language_swtich %}
{% csrf_token %}
<li>
{% get_current_language as LANGUAGE_CODE %}
<div class="lang-switch" style="max-width: none;" data-bind='component: {
Expand Down
2 changes: 1 addition & 1 deletion releases/7.6.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ JavaScript:
pip install --upgrade arches==7.6.1
```
3. If you are running Arches on Apache, be restart your server:
3. If you are running Arches on Apache, restart your server:
```
sudo service apache2 reload
```
1 change: 1 addition & 0 deletions releases/7.6.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Bug Fixes and Enhancements

- Fix language switcher CSRF error when interacting before login #[11528](https://github.com/archesproject/arches/issues/11528)
- Fixes failure to serialize non-editable Django fields (e.g. auto-date fields) #[11272](https://github.com/archesproject/arches/issues/11272)
- Fixes bug in which resource relationships fail to appear in visualize mode if using default deny as a non-superuser #[11539](https://github.com/archesproject/arches/pull/11539)
- Fixes bypassing of display logic of details table in search results for client-cached resources #[11537](https://github.com/archesproject/arches/issues/11537)
Expand Down

0 comments on commit f90e519

Please sign in to comment.