From 326518873e36f0ff8367fb548d0c2d2a6e5e5746 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 8 Apr 2021 21:04:34 -0700 Subject: [PATCH] fix: Logout suspended users immediately --- app/utils/ApiClient.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/utils/ApiClient.js b/app/utils/ApiClient.js index 4681d85435..d717cd52d9 100644 --- a/app/utils/ApiClient.js +++ b/app/utils/ApiClient.js @@ -154,6 +154,10 @@ class ApiClient { } if (response.status === 403) { + if (error.error === "user_suspended") { + stores.auth.logout(); + return; + } throw new AuthorizationError(error.message); }