mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 09:15:39 +03:00
@@ -161,7 +161,7 @@ module.exports = {
|
||||
throw Errors.USER_NOT_FOUND;
|
||||
}
|
||||
|
||||
if (user.id === currentUser.id) {
|
||||
if (currentSession && user.id === currentUser.id) {
|
||||
const { token: accessToken } = sails.helpers.utils.createJwtToken(
|
||||
user.id,
|
||||
user.passwordChangedAt,
|
||||
|
||||
Reference in New Issue
Block a user