fix: sidebar is empty when the jwt token is expired (#2037)
This commit is contained in:
parent
1ca29dd66a
commit
4ffd1325bd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user