mirror of
https://github.com/outline/outline.git
synced 2026-01-06 02:59:54 -06:00
fix: Logout suspended users immediately
This commit is contained in:
@@ -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