Bug fixed
This commit is contained in:
parent
d1cf22bc65
commit
84e61c6cdf
|
@ -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`);
|
||||
|
|
Loading…
Reference in New Issue