Bug fixed

This commit is contained in:
gerard 2018-07-16 07:55:13 +02:00
parent d1cf22bc65
commit 84e61c6cdf
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module.exports = Self => {
});
Self.updateBasicData = async(params, id) => {
let validUpdateParams = ['id', 'name', 'email', 'phone', 'mobile', 'salesPerson', 'contactChanelFk'];
let validUpdateParams = ['id', 'contact', 'name', 'email', 'phone', 'mobile', 'salesPersonFk', 'contactChannelFk'];
for (const key in params) {
if (validUpdateParams.indexOf(key) === -1)
throw new Error(`You don't have enough privileges to do that`);