fix: Display assignee only if the assignee has access to the account (#1500)
This commit is contained in:
parent
2880f4942a
commit
870a24126e
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ json.meta do
|
||||||
json.partial! 'api/v1/models/contact.json.jbuilder', resource: conversation.contact
|
json.partial! 'api/v1/models/contact.json.jbuilder', resource: conversation.contact
|
||||||
end
|
end
|
||||||
json.channel conversation.inbox.try(:channel_type)
|
json.channel conversation.inbox.try(:channel_type)
|
||||||
if conversation.assignee
|
if conversation.assignee&.account
|
||||||
json.assignee do
|
json.assignee do
|
||||||
json.partial! 'api/v1/models/agent.json.jbuilder', resource: conversation.assignee
|
json.partial! 'api/v1/models/agent.json.jbuilder', resource: conversation.assignee
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue