Next release WIP #
This commit is contained in:
parent
7d7944fa90
commit
20078ccacc
10 changed files with 219 additions and 94 deletions
|
|
@ -47,8 +47,14 @@ class CdrSignalReply
|
|||
|
||||
# Check CDR Link allowed channels setting
|
||||
allowedChannels = ui.Config.get('cdr_link_allowed_channels')
|
||||
if allowedChannels && allowedChannels.trim()
|
||||
hasWhitelist = allowedChannels && allowedChannels.trim()
|
||||
|
||||
if hasWhitelist
|
||||
whitelist = (channel.trim() for channel in allowedChannels.split(','))
|
||||
# Filter articleTypes to only those in the whitelist (keep 'note' for internal notes)
|
||||
articleTypes = articleTypes.filter (type) ->
|
||||
type.name is 'note' or type.name in whitelist
|
||||
|
||||
# Return early if 'cdr_signal' or 'signal message' not in whitelist
|
||||
return articleTypes if 'cdr_signal' not in whitelist && 'signal message' not in whitelist
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue