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

@ -22,7 +22,9 @@ export function AdminRequiredError(
export function UserSuspendedError(
message: string = 'Your access has been suspended by the team admin'
) {
return httpErrors(403, message, { id: 'user_suspended' });
return httpErrors(403, message, {
id: 'user_suspended',
});
}
export function InvalidRequestError(message: string = 'Request invalid') {