allow user who disable auth to use chat (#2548)

* allow user who disable auth to use chat

* only check non user on verify session owner

* fix import source

* rollback 401 to 403 for unauthorized error due to unit test

* change unauthenticated http code error to 401 and fix unit tests
This commit is contained in:
Fijar Lazuardy
2026-06-06 03:54:19 +07:00
committed by GitHub
parent fb3e89b011
commit 66599b02a2
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -136,4 +136,4 @@ def test_unauthenticated_caller_rejected(monkeypatch):
req = _req(api_token=False, current_user=None)
with pytest.raises(HTTPException) as exc:
SR._verify_session_owner(req, "sid")
assert exc.value.status_code == 403
assert exc.value.status_code == 401