Unverified Commit 4ffd1325 authored by Regev Brody's avatar Regev Brody Committed by GitHub

fix: sidebar is empty when the jwt token is expired (#2037)

parent 1ca29dd6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment