Use Client APIs to resolve URLs (#5148)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
67739cb516
Коммит
7e9cf13aa3
7
webapp/client/test_web_client.jsx
Обычный файл
7
webapp/client/test_web_client.jsx
Обычный файл
@@ -0,0 +1,7 @@
|
||||
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
import Client from './client.jsx';
|
||||
|
||||
var WebClient = new Client();
|
||||
export default WebClient;
|
||||
@@ -50,7 +50,7 @@ class WebClientClass extends Client {
|
||||
return;
|
||||
}
|
||||
|
||||
if (err.status === HTTP_UNAUTHORIZED && res.req.url !== '/api/v3/users/login') {
|
||||
if (err.status === HTTP_UNAUTHORIZED && res.req.url !== this.getUsersRoute() + '/login') {
|
||||
GlobalActions.emitUserLoggedOutEvent('/login');
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user