Skip to content

Commit 24eb0d2

Browse files
committed
[#2579] fix: update BiscuitMiddleware to include '/logout' in the request path check
1 parent 958dbb9 commit 24eb0d2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [DOCS] Add multi-language support to the documentation, including French
66
- [UI] Fix incorrect key used when viewing service details
7+
- [UI] Fix 403 when changing IP address on web UI
78
- [DEPS] Update lua-resty-openssl version to v1.6.4
89

910
## v1.6.5-rc2 - ????/??/??

src/ui/app/models/biscuit.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ def _check_authorization(self) -> None:
5757
Flask's `before_request` hook to intercept requests and perform Biscuit authorization.
5858
Enhanced to handle dynamic permissions per route.
5959
"""
60-
if (
61-
request.path.startswith(("/css/", "/img/", "/js/", "/json/", "/fonts/", "/libs/", "/locales/", "/cache/"))
62-
or request.endpoint == "logout.logout_page"
63-
):
60+
if request.path.startswith(("/css/", "/img/", "/js/", "/json/", "/fonts/", "/libs/", "/locales/", "/cache/", "/logout")):
6461
return
6562

6663
token_str: Optional[str] = session.get("biscuit_token") # Retrieve token from session

0 commit comments

Comments
 (0)