add security to all admin endpoints
This commit is contained in:
1 parent
71e5830d6c
commit
73433586b6
24 files changed
+264
-230
No files matched your search
@@ -47,7 +47,7 @@ export function redirectingAuthorizedFetch(url, params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
authorizedFetch(url, params).then(response => {
|
||||
if (response.status === 401) {
|
||||
history.go("/");
|
||||
history.push("/");
|
||||
} else {
|
||||
resolve(response);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user