mirror of
https://github.com/outline/outline.git
synced 2026-12-01 09:22:14 +03:00
fix: Logout suspended users immediately
This commit is contained in:
1 parent
ed779a250f
commit
326518873e
1 file changed
+4
@@ -154,6 +154,10 @@ class ApiClient {
|
||||
}
|
||||
|
||||
if (response.status === 403) {
|
||||
if (error.error === "user_suspended") {
|
||||
stores.auth.logout();
|
||||
return;
|
||||
}
|
||||
throw new AuthorizationError(error.message);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user