Computation of permissions seems to somehow work.
This commit is contained in:
parent
e7bdfb7745
commit
5df444f641
12 changed files with 286 additions and 133 deletions
|
@ -210,7 +210,8 @@ class SectionContent extends Component {
|
|||
|
||||
errorHandler(error) {
|
||||
if (error instanceof interoperableErrors.NotLoggedInError) {
|
||||
this.ensureAuthenticated();
|
||||
/* FIXME, once we turn Mailtrain to single-page application, this should become navigateTo */
|
||||
window.location = '/account/login?next=' + encodeURIComponent(this.props.root);
|
||||
} else if (error.response && error.response.data && error.response.data.message) {
|
||||
console.error(error);
|
||||
this.navigateToWithFlashMessage(this.props.root, 'danger', error.response.data.message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue