mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-15 17:25:26 -04:00
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:
@@ -109,7 +109,7 @@ def test_unauthenticated_still_403(monkeypatch):
|
||||
sm = SimpleNamespace(sessions={"ghost": SimpleNamespace(owner=None)})
|
||||
with pytest.raises(HTTPException) as exc:
|
||||
SR._verify_session_owner(_req(api_token=False, current_user=None), "ghost", sm)
|
||||
assert exc.value.status_code == 403
|
||||
assert exc.value.status_code == 401
|
||||
|
||||
|
||||
# --- manager layer: delete_session clears memory-only ghosts ---------------
|
||||
|
||||
Reference in New Issue
Block a user