UI to prevent suspended users viewing the application
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user