We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31cb42a commit 4efe0f5Copy full SHA for 4efe0f5
app-routes.js
@@ -51,8 +51,7 @@ module.exports = (app) => {
51
next()
52
} else {
53
try {
54
- req.authUser.userId = String(req.authUser.userId)
55
- const user = await helper.getMemberById(req.authUser.userId)
+ const user = await helper.getMemberById(_.toInteger(req.authUser.userId))
56
if (!user || _.intersection([user.homeCountryCode, user.competitionCountryCode], def.forbiddenCountries).length > 0) {
57
throw new errors.ForbiddenError('Access denied')
58
}
0 commit comments