This commit is contained in:
gerard 2018-08-21 11:29:42 +02:00
parent c48b8c4b99
commit ea785bd9a1
1 changed files with 0 additions and 1 deletions

View File

@ -29,7 +29,6 @@ module.exports = Self => {
if (ctx.req.accessToken) {
let token = ctx.req.accessToken;
let currentUserId = token && token.userId;
console.log(currentUserId);
isProduction = await models.Account.hasRole(currentUserId, 'Production');
let worker = await models.Worker.findOne({where: {userFk: currentUserId}});
params.workerFk = worker.id;