UI to prevent suspended users viewing the application

This commit is contained in:
Jori Lallo
2018-03-04 22:18:23 -08:00
parent 1c2b3e992e
commit 1a8ca20fce
8 changed files with 49 additions and 9 deletions

View File

@ -75,7 +75,9 @@ export default function auth() {
}
}
if (user.isSuspended) throw new UserSuspendedError();
if (user.isSuspended) {
throw new UserSuspendedError();
}
ctx.state.token = token;
ctx.state.user = user;