aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sockets.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sockets.js')
-rw-r--r--lib/sockets.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sockets.js b/lib/sockets.js
index a8428d2f..22072dd0 100644
--- a/lib/sockets.js
+++ b/lib/sockets.js
@@ -115,6 +115,7 @@ app.register(async function(app) {
names[id] = username;
let user = await getUser(username);
+
if (user.locked) throw new Error("Account is locked");
let payments = await user.getPayments({
where: {