fixed typo

This commit is contained in:
Gerard 2018-10-19 14:54:45 +02:00
parent 1b504febb8
commit 7bbda50901
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ module.exports = Self => {
let isSalesAssistant = await Self.app.models.Account.hasRole(userId, 'salesAssistant');
let client = await Self.app.models.Client.findOne({where: {id: id}});
if (!isSalesAssistant && client.isTaxDataChecked)
if (!isSalesAssistant)
throw new UserError(`You don't have enough privileges to do that`);
return client.updateAttributes(data);