Whatsapp unlink and channel display fixes
This commit is contained in:
parent
2fbe8ac75a
commit
b179ae5069
7 changed files with 42 additions and 20 deletions
|
|
@ -45,13 +45,6 @@ class CdrWhatsappReply
|
|||
@articleTypes: (articleTypes, ticket, ui) ->
|
||||
return articleTypes if !ui.permissionCheck('ticket.agent')
|
||||
|
||||
# Check CDR Link allowed channels setting
|
||||
allowedChannels = ui.Config.get('cdr_link_allowed_channels')
|
||||
if allowedChannels && allowedChannels.trim()
|
||||
whitelist = (channel.trim() for channel in allowedChannels.split(','))
|
||||
# Return early if 'cdr_whatsapp' or 'whatsapp message' not in whitelist
|
||||
return articleTypes if 'cdr_whatsapp' not in whitelist && 'whatsapp message' not in whitelist
|
||||
|
||||
return articleTypes if !ticket || !ticket.create_article_type_id
|
||||
|
||||
articleTypeCreate = App.TicketArticleType.find(ticket.create_article_type_id).name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue