fixed typo
This commit is contained in:
parent
1b504febb8
commit
7bbda50901
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue