2999-ticket_dms_import_from_existing + buyer to ticket.isEditable #678
|
@ -32,7 +32,9 @@ module.exports = Self => {
|
|||
|
||||
const isSalesAssistant = await Self.app.models.Account.hasRole(userId, 'salesAssistant', myOptions);
|
||||
const isProductionBoss = await Self.app.models.Account.hasRole(userId, 'productionBoss', myOptions);
|
||||
const isValidRole = isSalesAssistant || isProductionBoss;
|
||||
const isBuyer = await Self.app.models.Account.hasRole(userId, 'buyer', myOptions);
|
||||
|
||||
const isValidRole = isSalesAssistant || isProductionBoss || isBuyer;
|
||||
|
||||
let alertLevel = state ? state.alertLevel : null;
|
||||
let ticket = await Self.app.models.Ticket.findById(id, {
|
||||
|
|
Loading…
Reference in New Issue