#3000 add buyer to ticket isEditable
This commit is contained in:
parent
790c3729aa
commit
2548fdc891
|
@ -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