Regev Brody
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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
|
|
|
|