diff --git a/backend/api/controllers/user.js b/backend/api/controllers/user.js index 286a47b07..17b64dec4 100644 --- a/backend/api/controllers/user.js +++ b/backend/api/controllers/user.js @@ -122,7 +122,7 @@ class UserController { } catch (e) { requser = null; } - if (user?.banned === true) { + if (requser?.banned === true) { throw new MonkeyError(403, "Banned accounts cannot link with Discord"); }