2999-ticket_dms_import_from_existing + buyer to ticket.isEditable #678

Merged
joan merged 8 commits from 2999-ticket_dms_import_from_existing into dev 2021-06-29 10:13:24 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 2548fdc891 - Show all commits

View File

@ -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, {