refs #4856 otros usuarios pueden actualizar el estado

This commit is contained in:
Vicent Llopis 2023-04-04 09:29:40 +02:00
parent d1100384bd
commit 21b7050cfd
1 changed files with 0 additions and 4 deletions

View File

@ -47,10 +47,6 @@ module.exports = Self => {
if (typeof options == 'object') if (typeof options == 'object')
Object.assign(myOptions, options); Object.assign(myOptions, options);
const isHimself = userId == args.workerId;
if (!isHimself)
throw new UserError(`You don't have enough privileges`);
const workerTimeControlMail = await models.WorkerTimeControlMail.findOne({ const workerTimeControlMail = await models.WorkerTimeControlMail.findOne({
where: { where: {
workerFk: args.workerId, workerFk: args.workerId,