fix: Logout suspended users immediately

This commit is contained in:
Tom Moor committed 2021-04-08 21:04:34 -07:00
1 parent ed779a250f
commit 326518873e
1 file changed
+4
+4
View File
@@ -154,6 +154,10 @@ class ApiClient {
}
if (response.status === 403) {
if (error.error === "user_suspended") {
stores.auth.logout();
return;
}
throw new AuthorizationError(error.message);
}