diff --git a/server/core/auth.js b/server/core/auth.js index d10ba381..1142849e 100644 --- a/server/core/auth.js +++ b/server/core/auth.js @@ -118,6 +118,7 @@ module.exports = { const newToken = await WIKI.models.users.refreshToken(jwtPayload.id) user = newToken.user user.permissions = user.getGlobalPermissions() + user.groups = user.getGroups() req.user = user // Try headers, otherwise cookies for response