add security to all admin endpoints

This commit is contained in:
Rick Watson committed 2019-05-29 23:48:16 +01:00
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);
}